Clean up Twitch badge appending code

This commit is contained in:
Rasmus Karlsson
2019-12-01 13:32:41 +01:00
parent c00f97ac53
commit bcc53c9aa7
6 changed files with 151 additions and 189 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include "messages/MessageElement.hpp"
#include <QString>
namespace chatterino {
class Badge
{
public:
Badge(QString key, QString value);
QString key_; // e.g. bits
QString value_; // e.g. 100
QString extraValue_{}; // e.g. 5 (the number of months subscribed)
MessageElementFlag flag_{
MessageElementFlag::BadgeVanity}; // badge slot it takes up
};
} // namespace chatterino