2017-06-07 10:09:24 +02:00
|
|
|
#pragma once
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2017-06-11 09:31:45 +02:00
|
|
|
#include "ircaccount.hpp"
|
2017-04-12 17:46:44 +02:00
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
|
|
|
namespace twitch {
|
2017-04-12 17:46:44 +02:00
|
|
|
|
|
|
|
class TwitchUser : public IrcUser2
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TwitchUser(const QString &username, const QString &oauthToken, const QString &oauthClient);
|
|
|
|
|
|
|
|
const QString &getOAuthToken() const;
|
|
|
|
const QString &getOAuthClient() const;
|
2017-09-23 19:23:10 +02:00
|
|
|
const QString &getUserId() const;
|
|
|
|
void setUserId(const QString &id);
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2017-12-19 15:09:54 +01:00
|
|
|
void setOAuthClient(const QString &newClientID);
|
|
|
|
void setOAuthToken(const QString &newClientID);
|
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
bool isAnon() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString _oauthClient;
|
|
|
|
QString _oauthToken;
|
2017-09-23 19:23:10 +02:00
|
|
|
QString _userId;
|
2017-06-11 12:00:53 +02:00
|
|
|
bool _isAnon;
|
2017-04-12 17:46:44 +02:00
|
|
|
};
|
2017-05-27 17:45:40 +02:00
|
|
|
|
|
|
|
} // namespace twitch
|
|
|
|
} // namespace chatterino
|