#include <SeventvEmotes.hpp>
|
static void | loadChannelEmotes (const std::weak_ptr< Channel > &channel, const QString &channelId, std::function< void(EmoteMap &&, ChannelInfo)> callback, bool manualRefresh) |
|
static boost::optional< EmotePtr > | addEmote (Atomic< std::shared_ptr< const EmoteMap >> &map, const SeventvEventAPIEmoteAddDispatch &dispatch) |
|
static boost::optional< EmotePtr > | updateEmote (Atomic< std::shared_ptr< const EmoteMap >> &map, const SeventvEventAPIEmoteUpdateDispatch &dispatch) |
|
static boost::optional< EmotePtr > | removeEmote (Atomic< std::shared_ptr< const EmoteMap >> &map, const SeventvEventAPIEmoteRemoveDispatch &dispatch) |
|
static void | getEmoteSet (const QString &emoteSetId, std::function< void(EmoteMap &&, QString)> successCallback, std::function< void(QString)> errorCallback) |
|
◆ SeventvEmotes()
chatterino::SeventvEmotes::SeventvEmotes |
( |
| ) |
|
◆ addEmote()
Adds an emote to the map
if it's valid. This will copy the emote map and update the Atomic
.
- Returns
- The added emote if an emote was added.
◆ getEmoteSet()
void chatterino::SeventvEmotes::getEmoteSet |
( |
const QString & |
emoteSetId, |
|
|
std::function< void(EmoteMap &&, QString)> |
successCallback, |
|
|
std::function< void(QString)> |
errorCallback |
|
) |
| |
|
static |
Fetches an emote-set by its id
◆ globalEmote()
boost::optional< EmotePtr > chatterino::SeventvEmotes::globalEmote |
( |
const EmoteName & |
name | ) |
const |
◆ globalEmotes()
std::shared_ptr< const EmoteMap > chatterino::SeventvEmotes::globalEmotes |
( |
| ) |
const |
◆ loadChannelEmotes()
void chatterino::SeventvEmotes::loadChannelEmotes |
( |
const std::weak_ptr< Channel > & |
channel, |
|
|
const QString & |
channelId, |
|
|
std::function< void(EmoteMap &&, ChannelInfo)> |
callback, |
|
|
bool |
manualRefresh |
|
) |
| |
|
static |
◆ loadGlobalEmotes()
void chatterino::SeventvEmotes::loadGlobalEmotes |
( |
| ) |
|
◆ removeEmote()
Removes an emote from this map
. This will copy the emote map and update the Atomic
.
- Returns
- The removed emote if any emote was removed.
◆ updateEmote()
Updates an emote in this map
. This will copy the emote map and update the Atomic
.
- Returns
- The updated emote if any emote was updated.
The documentation for this class was generated from the following files: