Icon.cpp (830B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #include "pch.h" 4 #include "Icon.g.cpp" 5 #include "Icon.h" 6 #include "Converters.h" 7 8 namespace winrt::Microsoft::Management::Deployment::implementation 9 { 10 void Icon::Initialize(::AppInstaller::Manifest::Icon icon) 11 { 12 m_icon = std::move(icon); 13 } 14 hstring Icon::Url() 15 { 16 return winrt::to_hstring(m_icon.Url); 17 } 18 IconFileType Icon::FileType() 19 { 20 return GetDeploymentIconFileType(m_icon.FileType); 21 } 22 IconResolution Icon::Resolution() 23 { 24 return GetDeploymentIconResolution(m_icon.Resolution); 25 } 26 IconTheme Icon::Theme() 27 { 28 return GetDeploymentIconTheme(m_icon.Theme); 29 } 30 com_array<uint8_t> Icon::Sha256() 31 { 32 return com_array<uint8_t>(m_icon.Sha256); 33 } 34 }