summaryrefslogtreecommitdiff
path: root/battleNetApi/include/tokenPool.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'battleNetApi/include/tokenPool.hpp')
-rw-r--r--battleNetApi/include/tokenPool.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/battleNetApi/include/tokenPool.hpp b/battleNetApi/include/tokenPool.hpp
new file mode 100644
index 0000000..6aa2b15
--- /dev/null
+++ b/battleNetApi/include/tokenPool.hpp
@@ -0,0 +1,16 @@
+#include <queue>
+#include <token.hpp>
+
+class TokenPool {
+ private:
+ TokenPool() = default;
+ TokenPool(const TokenPool &) = delete;
+ TokenPool(TokenPool &&) = delete;
+ TokenPool &operator=(const TokenPool &) = delete;
+ TokenPool &operator=(TokenPool &&) = delete;
+ static std::queue<Token> mTokenContainer;
+
+ public:
+ static void fillTokenSource(const std::string &iJsonPath);
+ static std::optional<std::string> unusedToken();
+};