LeviLamina
Loading...
Searching...
No Matches
CatalogBackend.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/services/requests/catalog/SearchRequestURLType.h"
7
8// auto generated forward declare list
9// clang-format off
11class ServiceClient;
12struct RatingData;
14namespace Bedrock::Http { class RequestBuilder; }
15namespace Bedrock::Http { struct Method; }
16namespace Json { class Value; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 CatalogBackend& operator=(CatalogBackend const&);
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~CatalogBackend() = default;
37
38 // vIndex: 1
39 virtual ::std::string const& getCachedFilePrefix() const = 0;
40
41 // vIndex: 2
42 virtual ::std::string getHostUrl() const = 0;
43
44 // vIndex: 3
45 virtual ::std::string getSearchUrl(::SearchRequestURLType) const = 0;
46
47 // vIndex: 4
48 virtual ::std::string getHydrateUrl(::std::string const&) const = 0;
49
50 // vIndex: 5
51 virtual ::std::string getReviewSummaryUrl(::std::string const&) const = 0;
52
53 // vIndex: 6
54 virtual ::std::string getMyReviewUrl(::std::string const&, ::std::string const&) const = 0;
55
56 // vIndex: 7
57 virtual ::std::string getCreateReviewUrl(::std::string const&) const = 0;
58
59 // vIndex: 8
60 virtual ::Bedrock::Http::Method getItemIdHttpRequestMethod() const = 0;
61
62 // vIndex: 9
63 virtual void addAuthTokenHeader(::Bedrock::Http::RequestBuilder&, ::ServiceClient const&) const = 0;
64
65 // vIndex: 10
66 virtual void addETagHeader(::Bedrock::Http::RequestBuilder&, ::std::string const&) const = 0;
67
68 // vIndex: 11
69 virtual void
70 setItemIdPostBody(::Bedrock::Http::RequestBuilder&, ::std::string const&, ::std::string const&) const = 0;
71
72 // vIndex: 12
73 virtual void setCreateReviewBody(::Bedrock::Http::RequestBuilder&, ::CreateReviewParams const&) const = 0;
74
75 // vIndex: 13
76 virtual bool usePascalCase() const = 0;
77
78 // vIndex: 14
79 virtual ::std::string parseCreatorId(::Json::Value const&) const = 0;
80
81 // vIndex: 15
82 virtual void parseETag(::Json::Value const&, ::std::string&) const = 0;
83
84 // vIndex: 16
85 virtual ::std::string parseFriendlyId(::Json::Value const&) const = 0;
86
87 // vIndex: 17
88 virtual ::std::string parseOneStoreId(::Json::Value const&) const = 0;
89
90 // vIndex: 18
91 virtual ::Json::Value const& prepareSearchResponse(::Json::Value const&, int&, ::SearchRequestURLType) const = 0;
92
93 // vIndex: 19
94 virtual ::Json::Value const& prepareItemDataResponse(::Json::Value const&) const = 0;
95
96 // vIndex: 20
97 virtual ::std::unique_ptr<::ReviewSummaryData> reviewSummaryDataFromJson(::Json::Value const&) const = 0;
98
99 // vIndex: 21
100 virtual ::RatingData parseRatingData(::Json::Value const&) const = 0;
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112
113 // NOLINTEND
114};
Definition RequestBuilder.h:7
Definition CatalogBackend.h:19
Definition CreateReviewParams.h:5
Definition Value.h:16
Definition ServiceClient.h:15
Definition RatingData.h:5
Definition ReviewSummaryData.h:5
Definition Alias.h:14