4 #include "boost/optional.hpp" 12 using EmotePtr = std::shared_ptr<const Emote>;
17 static constexpr
const char *globalEmoteApiUrl =
18 "https://api.betterttv.net/3/cached/emotes/global";
19 static constexpr
const char *bttvChannelEmoteApiUrl =
20 "https://api.betterttv.net/3/cached/users/twitch/";
25 std::shared_ptr<const EmoteMap>
emotes()
const;
26 boost::optional<EmotePtr>
emote(
const EmoteName &
name)
const;
28 static void loadChannel(std::weak_ptr<Channel> channel,
29 const QString &channelId,
30 const QString &channelDisplayName,
31 std::function<
void(
EmoteMap &&)> callback,
static void loadChannel(std::weak_ptr< Channel > channel, const QString &channelId, const QString &channelDisplayName, std::function< void(EmoteMap &&)> callback, bool manualRefresh)
Definition: BttvEmotes.cpp:164
Definition: BttvEmotes.hpp:15
Definition: Application.cpp:48
std::shared_ptr< const EmoteMap > emotes() const
Definition: BttvEmotes.cpp:128
std::shared_ptr< const Emote > EmotePtr
Definition: Emote.hpp:38
BttvEmotes()
Definition: BttvEmotes.cpp:123
boost::optional< EmotePtr > emote(const EmoteName &name) const
Definition: BttvEmotes.cpp:133
QString name
Definition: Credentials.cpp:94
void loadEmotes()
Definition: BttvEmotes.cpp:143