winget-cli

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

CheckInstalledStatusResult.cpp (1044B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "CheckInstalledStatusResult.h"
      5 #include "CheckInstalledStatusResult.g.cpp"
      6 #include <wil\cppwinrt_wrl.h>
      7 
      8 namespace winrt::Microsoft::Management::Deployment::implementation
      9 {
     10     void CheckInstalledStatusResult::Initialize(
     11         winrt::Microsoft::Management::Deployment::CheckInstalledStatusResultStatus status,
     12         Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageInstallerInstalledStatus> installedStatus)
     13     {
     14         m_status = status;
     15         m_installedStatus = installedStatus;
     16     }
     17     winrt::Microsoft::Management::Deployment::CheckInstalledStatusResultStatus CheckInstalledStatusResult::Status()
     18     {
     19         return m_status;
     20     }
     21     winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::Management::Deployment::PackageInstallerInstalledStatus> CheckInstalledStatusResult::PackageInstalledStatus()
     22     {
     23         return m_installedStatus.GetView();
     24     }
     25 }