2017-06-07 10:09:24 +02:00
|
|
|
#pragma once
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2017-06-11 09:31:45 +02:00
|
|
|
#include "channel.hpp"
|
|
|
|
#include "messages/messagebuilder.hpp"
|
2017-04-12 17:46:44 +02:00
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
|
|
|
namespace twitch {
|
2017-04-12 17:46:44 +02:00
|
|
|
|
|
|
|
class TwitchMessageBuilder : public messages::MessageBuilder
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TwitchMessageBuilder();
|
|
|
|
|
|
|
|
void appendTwitchBadges(const QStringList &badges);
|
|
|
|
|
|
|
|
QString messageId;
|
|
|
|
QString userName;
|
|
|
|
|
|
|
|
static messages::SharedMessage parse(const Communi::IrcPrivateMessage *ircMessage,
|
|
|
|
Channel *channel, const messages::MessageParseArgs &args);
|
|
|
|
|
|
|
|
// static bool sortTwitchEmotes(
|
|
|
|
// const std::pair<long int, messages::LazyLoadedImage *> &a,
|
|
|
|
// const std::pair<long int, messages::LazyLoadedImage *> &b);
|
|
|
|
};
|
2017-06-07 10:09:24 +02:00
|
|
|
|
|
|
|
} // namespace twitch
|
|
|
|
} // namespace chatterino
|