winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Documentation.cpp (612B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "Documentation.g.cpp"
      5 #include "Documentation.h"
      6 
      7 namespace winrt::Microsoft::Management::Deployment::implementation
      8 {
      9     void Documentation::Initialize(::AppInstaller::Manifest::Documentation documentation)
     10     {
     11         m_documentation = std::move(documentation);
     12     }
     13     hstring Documentation::DocumentLabel()
     14     {
     15         return winrt::to_hstring(m_documentation.DocumentLabel);
     16     }
     17     hstring Documentation::DocumentUrl()
     18     {
     19         return winrt::to_hstring(m_documentation.DocumentUrl);
     20     }
     21 }