mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CPylon: add getters and setters for error/token fields
This commit is contained in:
parent
6bb622314e
commit
7455d4da2d
@ -21,6 +21,11 @@ public:
|
|||||||
bool QueryServer(const char* endpoint, const char* request, string& outResponse, string& outMessage, CURLINFO& outStatus) const;
|
bool QueryServer(const char* endpoint, const char* request, string& outResponse, string& outMessage, CURLINFO& outStatus) const;
|
||||||
|
|
||||||
bool KeepAlive(const NetGameServer_t& netGameServer);
|
bool KeepAlive(const NetGameServer_t& netGameServer);
|
||||||
|
inline const string& GetCurrentToken() const { return m_Token; }
|
||||||
|
inline const string& GetCurrentError() const { return m_ErrorMsg; }
|
||||||
|
|
||||||
|
inline void SetCurrentToken(const string& token) { m_Token = token; }
|
||||||
|
inline void SetCurrentError(const string& error) { m_ErrorMsg = error; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
string m_Token;
|
string m_Token;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user