SourceAgreement.cpp (777B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #include "pch.h" 4 #include <winget/RepositorySource.h> 5 #include "SourceAgreement.h" 6 #include "SourceAgreement.g.cpp" 7 #include <wil\cppwinrt_wrl.h> 8 9 namespace winrt::Microsoft::Management::Deployment::implementation 10 { 11 void SourceAgreement::Initialize(::AppInstaller::Repository::SourceAgreement sourceAgreement) 12 { 13 m_sourceAgreement = std::move(sourceAgreement); 14 } 15 hstring SourceAgreement::Label() 16 { 17 return winrt::to_hstring(m_sourceAgreement.Label); 18 } 19 hstring SourceAgreement::Text() 20 { 21 return winrt::to_hstring(m_sourceAgreement.Text); 22 } 23 hstring SourceAgreement::Url() 24 { 25 return winrt::to_hstring(m_sourceAgreement.Url); 26 } 27 }