diff options
| author | Aotrix <[email protected]> | 2026-04-18 22:20:26 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-04-18 22:20:26 +0200 |
| commit | 8837de4783b25255b6a1799be210c9e580dd2d4f (patch) | |
| tree | 5073cac386123c6d403714b4a5dcb7cceade7056 /battleNetApi/include | |
| parent | 27459497a5ba0eac18a57e0c15b21972ab7e5284 (diff) | |
Replace operator() with text method
Diffstat (limited to 'battleNetApi/include')
| -rw-r--r-- | battleNetApi/include/apiUrl.hpp | 2 | ||||
| -rw-r--r-- | battleNetApi/include/hearthstoneApi.hpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/battleNetApi/include/apiUrl.hpp b/battleNetApi/include/apiUrl.hpp index 9c051f1..881e593 100644 --- a/battleNetApi/include/apiUrl.hpp +++ b/battleNetApi/include/apiUrl.hpp @@ -12,7 +12,7 @@ class ApiUrl { void setPage(const std::string &iPage); void setPageSize(const std::string &iPageSize); void setValue(const std::string &iKey, const std::string &iValue); - std::string operator()() const; + std::string text() const; private: std::string mContentType; diff --git a/battleNetApi/include/hearthstoneApi.hpp b/battleNetApi/include/hearthstoneApi.hpp index ecf785a..f2bdf04 100644 --- a/battleNetApi/include/hearthstoneApi.hpp +++ b/battleNetApi/include/hearthstoneApi.hpp @@ -8,7 +8,8 @@ using json = nlohmann::json; class HearthstoneApi { public: - static json makeApiRequest(const std::string &iUrl, const std::string &iTokenText); + static json makeApiRequest(const ApiUrl &iApiUrl, const std::string &iTokenText); + static std::vector<json> makeApiRequest(const std::vector<ApiUrl> &iApiUrls, const std::string &iTokenText); static std::vector<json> makeApiRequest(const std::vector<std::string> &iUrls, const std::string &iTokenText); static json downloadCards(ApiUrl &iApiUrl, Token &iToken); |
