Harden emote parsing (#3885)
This commit is contained in:
@@ -33,13 +33,23 @@ struct CheerEmoteSet {
|
||||
std::vector<CheerEmote> cheerEmotes;
|
||||
};
|
||||
|
||||
class TwitchEmotes
|
||||
class ITwitchEmotes
|
||||
{
|
||||
public:
|
||||
virtual ~ITwitchEmotes() = default;
|
||||
|
||||
virtual EmotePtr getOrCreateEmote(const EmoteId &id,
|
||||
const EmoteName &name) = 0;
|
||||
};
|
||||
|
||||
class TwitchEmotes : public ITwitchEmotes
|
||||
{
|
||||
public:
|
||||
static QString cleanUpEmoteCode(const QString &dirtyEmoteCode);
|
||||
TwitchEmotes();
|
||||
TwitchEmotes() = default;
|
||||
|
||||
EmotePtr getOrCreateEmote(const EmoteId &id, const EmoteName &name);
|
||||
EmotePtr getOrCreateEmote(const EmoteId &id,
|
||||
const EmoteName &name) override;
|
||||
|
||||
private:
|
||||
Url getEmoteLink(const EmoteId &id, const QString &emoteScale);
|
||||
|
||||
Reference in New Issue
Block a user