2017-04-18 02:29:32 +02:00
|
|
|
#include "twitchaccount.h"
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
|
|
|
namespace twitch {
|
2017-04-12 17:46:44 +02:00
|
|
|
TwitchUser::TwitchUser(const QString &username, const QString &oauthToken,
|
|
|
|
const QString &oauthClient)
|
|
|
|
: IrcUser2(username, username, username, "oauth:" + oauthToken)
|
2017-04-18 02:12:45 +02:00
|
|
|
, _oauthClient(oauthClient)
|
|
|
|
, _oauthToken(oauthToken)
|
2017-04-12 17:46:44 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
const QString &TwitchUser::getOAuthClient() const
|
|
|
|
{
|
|
|
|
return _oauthClient;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QString &TwitchUser::getOAuthToken() const
|
|
|
|
{
|
|
|
|
return _oauthToken;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool TwitchUser::isAnon() const
|
|
|
|
{
|
|
|
|
return IrcUser2::getNickName().startsWith("justinfan");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|