diff options
| author | Aotrix <[email protected]> | 2025-11-06 00:05:14 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-11-06 00:05:14 +0100 |
| commit | 2df3eeae3a776c989920b8d07893397c2d09b9f0 (patch) | |
| tree | e5655361c35de0ab558b135534209c6140152655 /subprojects/battleNetApi/include/hearthstoneApi.hpp | |
| parent | be8da2ce2ba45706586fa0e3e4221f8ef32b9e76 (diff) | |
added test for token size
Diffstat (limited to 'subprojects/battleNetApi/include/hearthstoneApi.hpp')
| -rw-r--r-- | subprojects/battleNetApi/include/hearthstoneApi.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/subprojects/battleNetApi/include/hearthstoneApi.hpp b/subprojects/battleNetApi/include/hearthstoneApi.hpp index af41a09..c2298f7 100644 --- a/subprojects/battleNetApi/include/hearthstoneApi.hpp +++ b/subprojects/battleNetApi/include/hearthstoneApi.hpp @@ -4,11 +4,9 @@ class HearthstoneApi { public: - HearthstoneApi(); + HearthstoneApi(Token &&iToken); std::string getCards(const std::string &t_card_parameters); - friend class HearthstoneApiTests; - private: std::string generateRequestHeader(); const std::string getUrl(const std::string &t_parameters); @@ -18,7 +16,7 @@ class HearthstoneApi { static size_t curlCallbackStringOutput(void *t_contents, size_t t_size, size_t t_nmemb, std::string *t_s); Token mToken; - std::string m_header; + std::string mHeader; friend class HearthstoneApiMock; }; |
