7 #include <boost/noncopyable.hpp> 14 template <
typename... T>
25 : isSubHidden(root.value(
"statusHidden").toBool())
26 , isSubbed(!root.value(
"meta").isNull())
27 , subTier(root.value(
"meta").toObject().value(
"tier").toString())
29 root.value(
"cumulative").toObject().value(
"months").toInt())
30 , followingSince(root.value(
"followedAt").toString())
44 : setId(root.value(
"setID").toString())
45 , displayName(root.value(
"channelName").toString())
46 , login(root.value(
"channelLogin").toString())
47 , channelId(root.value(
"channelID").toString())
48 , tier(root.value(
"tier").toString())
49 , emotes(root.value(
"emoteList").toArray())
64 : code(root.value(
"code").toString())
65 , id(root.value(
"id").toString())
66 , setId(root.value(
"setID").toString())
68 .replace(
"{id}", this->id)
69 .replace(
"{scale}",
"3.0"))
70 , emoteType(root.value(
"type").toString())
71 , imageType(root.value(
"assetType").toString())
76 class IvrApi final : boost::noncopyable
80 void getSubage(QString userName, QString channelName,
85 void getBulkEmoteSets(QString emoteSetList,
89 static void initialize();
std::function< void()> IvrFailureCallback
Definition: IvrApi.hpp:13
const bool isSubHidden
Definition: IvrApi.hpp:18
const QString displayName
Definition: IvrApi.hpp:37
Definition: NetworkRequest.hpp:13
IvrEmoteSet(const QJsonObject &root)
Definition: IvrApi.hpp:43
IvrEmote(const QJsonObject &root)
Definition: IvrApi.hpp:63
const QString id
Definition: IvrApi.hpp:57
const QString setId
Definition: IvrApi.hpp:36
const QString setId
Definition: IvrApi.hpp:58
const QString login
Definition: IvrApi.hpp:38
const QString url
Definition: IvrApi.hpp:59
Definition: Application.cpp:48
IvrApi * getIvr()
Definition: IvrApi.cpp:79
std::function< void(T...)> ResultCallback
Definition: IvrApi.hpp:15
Definition: IvrApi.hpp:17
#define TWITCH_EMOTE_TEMPLATE
Definition: TwitchEmotes.hpp:15
const QString imageType
Definition: IvrApi.hpp:61
const QString tier
Definition: IvrApi.hpp:40
const int totalSubMonths
Definition: IvrApi.hpp:21
const QString subTier
Definition: IvrApi.hpp:20
const QJsonArray emotes
Definition: IvrApi.hpp:41
Definition: IvrApi.hpp:55
const QString followingSince
Definition: IvrApi.hpp:22
const QString channelId
Definition: IvrApi.hpp:39
Definition: IvrApi.hpp:76
const QString emoteType
Definition: IvrApi.hpp:60
const QString code
Definition: IvrApi.hpp:56
const bool isSubbed
Definition: IvrApi.hpp:19
Definition: IvrApi.hpp:35
IvrSubage(const QJsonObject &root)
Definition: IvrApi.hpp:24