winget-cli

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

MatchResult.cpp (837B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include <winget/RepositorySource.h>
      5 #include "MatchResult.h"
      6 #include "MatchResult.g.cpp"
      7 #include "CatalogPackage.h"
      8 #include <wil\cppwinrt_wrl.h>
      9 
     10 namespace winrt::Microsoft::Management::Deployment::implementation
     11 {
     12     void MatchResult::Initialize(Microsoft::Management::Deployment::CatalogPackage package, Microsoft::Management::Deployment::PackageMatchFilter matchCriteria)
     13     {
     14         m_catalogPackage = package;
     15         m_matchCriteria = matchCriteria;
     16     }
     17     winrt::Microsoft::Management::Deployment::CatalogPackage MatchResult::CatalogPackage()
     18     {
     19         return m_catalogPackage;
     20     }
     21     winrt::Microsoft::Management::Deployment::PackageMatchFilter MatchResult::MatchCriteria()
     22     {
     23         return m_matchCriteria;
     24     }
     25 }