Add method for updating a twitch users client id/oauth token
This commit is contained in:
@@ -33,6 +33,16 @@ void TwitchUser::setUserId(const QString &id)
|
|||||||
this->_userId = 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
|
bool TwitchUser::isAnon() const
|
||||||
{
|
{
|
||||||
return this->_isAnon;
|
return this->_isAnon;
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ public:
|
|||||||
const QString &getUserId() const;
|
const QString &getUserId() const;
|
||||||
void setUserId(const QString &id);
|
void setUserId(const QString &id);
|
||||||
|
|
||||||
|
void setOAuthClient(const QString &newClientID);
|
||||||
|
void setOAuthToken(const QString &newClientID);
|
||||||
|
|
||||||
bool isAnon() const;
|
bool isAnon() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user