winget-cli

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

DownloadResult.cpp (918B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "DownloadResult.h"
      5 #include "DownloadResult.g.cpp"
      6 #include <wil\cppwinrt_wrl.h>
      7 
      8 namespace winrt::Microsoft::Management::Deployment::implementation
      9 {
     10     void DownloadResult::Initialize(
     11         winrt::Microsoft::Management::Deployment::DownloadResultStatus status,
     12         winrt::hresult extendedErrorCode,
     13         hstring const& correlationData)
     14     {
     15         m_status = status;
     16         m_extendedErrorCode = extendedErrorCode;
     17         m_correlationData = correlationData;
     18     }
     19     hstring DownloadResult::CorrelationData()
     20     {
     21         return hstring(m_correlationData);
     22     }
     23     winrt::Microsoft::Management::Deployment::DownloadResultStatus DownloadResult::Status()
     24     {
     25         return m_status;
     26     }
     27     winrt::hresult DownloadResult::ExtendedErrorCode()
     28     {
     29         return m_extendedErrorCode;
     30     }
     31 }