diff options
| author | Aotrix <[email protected]> | 2026-07-13 00:23:36 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-07-13 00:23:36 +0200 |
| commit | 552017342ed077ec9a516b02ea4b6855a7c17007 (patch) | |
| tree | aca50984a334049392cd0d3eb8e4c4efe65a2909 /battleNetApi/include/token.hpp | |
| parent | a0632d299b85dc4ef7c0e03898f38e6deca0edc2 (diff) | |
Added test file for Token
Diffstat (limited to 'battleNetApi/include/token.hpp')
| -rw-r--r-- | battleNetApi/include/token.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/battleNetApi/include/token.hpp b/battleNetApi/include/token.hpp index cc909a8..8b9f95e 100644 --- a/battleNetApi/include/token.hpp +++ b/battleNetApi/include/token.hpp @@ -1,13 +1,17 @@ #pragma once +#include <chrono> #include <string> class Token { public: - explicit Token(const std::string &iTokenText); + explicit Token(const std::string &iTokenText, const std::chrono::seconds &iExpirationTime); std::string text() const; void setText(const std::string &iTokenText); + void setExpirationTime(const std::chrono::seconds &iExpirationTime); + bool isExpired(); private: - std::string mTokenText; //!< Token value + std::string _tokenText; + std::chrono::seconds _expirationTime; }; |
