mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add method for updating a twitch users client id/oauth token
This commit is contained in:
parent
d8db695628
commit
1e3aca1b7a
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue