winget-cli

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

FindPackagesResult.cpp (1262B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "FindPackagesResult.h"
      5 #include "FindPackagesResult.g.cpp"
      6 #include <wil\cppwinrt_wrl.h>
      7 
      8 namespace winrt::Microsoft::Management::Deployment::implementation
      9 {
     10     void FindPackagesResult::Initialize(
     11         winrt::Microsoft::Management::Deployment::FindPackagesResultStatus status,
     12         bool wasLimitExceeded, 
     13         Windows::Foundation::Collections::IVector<Microsoft::Management::Deployment::MatchResult> matches,
     14         winrt::hresult extendedErrorCode)
     15     {
     16         m_status = status;
     17         m_matches = matches;
     18         m_wasLimitExceeded = wasLimitExceeded;
     19         m_extendedErrorCode = extendedErrorCode;
     20     }
     21     winrt::Microsoft::Management::Deployment::FindPackagesResultStatus FindPackagesResult::Status()
     22     {
     23         return m_status;
     24     }
     25     winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::Management::Deployment::MatchResult> FindPackagesResult::Matches()
     26     {
     27         return m_matches.GetView();
     28     }
     29     bool FindPackagesResult::WasLimitExceeded()
     30     {
     31         return m_wasLimitExceeded;
     32     }
     33 
     34     winrt::hresult FindPackagesResult::ExtendedErrorCode()
     35     {
     36         return m_extendedErrorCode;
     37     }
     38 }