#pragma once #include "channel.hpp" #include "messages/messagebuilder.hpp" #include #include namespace chatterino { class Resources; class EmoteManager; class WindowManager; namespace twitch { class TwitchMessageBuilder : public messages::MessageBuilder { public: TwitchMessageBuilder(); QString messageId; QString userName; static messages::SharedMessage parse(const Communi::IrcPrivateMessage *ircMessage, Channel *channel, const messages::MessageParseArgs &args, const Resources &resources, EmoteManager &emoteManager, WindowManager &windowManager); // static bool sortTwitchEmotes( // const std::pair &a, // const std::pair &b); private: void appendModerationWords(const Communi::IrcPrivateMessage *ircMessage, const Resources &resources); void appendTwitchEmote(const Communi::IrcPrivateMessage *ircMessage, const QString &emote, std::vector> &vec, EmoteManager &emoteManager); void appendTwitchBadges(const QStringList &badges, const Resources &resources, EmoteManager &emoteManager); }; } // namespace twitch } // namespace chatterino