Add method for updating a twitch users client id/oauth token

This commit is contained in:
Rasmus Karlsson 2017-12-19 15:09:54 +01:00
parent d8db695628
commit 1e3aca1b7a
2 changed files with 13 additions and 0 deletions

View file

@ -33,6 +33,16 @@ void TwitchUser::setUserId(const QString &id)
this->_userId = id;
}
void TwitchUser::setOAuthClient(const QString &newClientID)
{
this->_oauthClient = newClientID;
}
void TwitchUser::setOAuthToken(const QString &newOAuthToken)
{
this->_oauthToken = newOAuthToken;
}
bool TwitchUser::isAnon() const
{
return this->_isAnon;

View file

@ -17,6 +17,9 @@ public:
const QString &getUserId() const;
void setUserId(const QString &id);
void setOAuthClient(const QString &newClientID);
void setOAuthToken(const QString &newClientID);
bool isAnon() const;
private: