winget-cli

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

SearchResponseDeserializer.h (760B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include <cpprest/json.h>
      5 #include "Rest/Schema/IRestClient.h"
      6 
      7 namespace AppInstaller::Repository::Rest::Schema::V1_0::Json
      8 {
      9     // Search Result Deserializer.
     10     struct SearchResponseDeserializer
     11     {
     12         // Gets the search result for given version
     13         IRestClient::SearchResult Deserialize(const web::json::value& searchResultJsonObject) const;
     14 
     15     protected:
     16         virtual std::optional<IRestClient::SearchResult> DeserializeSearchResult(const web::json::value& searchResultJsonObject) const;
     17         virtual std::optional<IRestClient::VersionInfo> DeserializeVersionInfo(const web::json::value& versionInfoJsonObject) const;
     18     };
     19 }