TTW_Bot/twitchchatmessage.h

32 lines
1.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// twitchchatmessage.h - структура сообщения
#ifndef TWITCHCHATMESSAGE_H
#define TWITCHCHATMESSAGE_H
#include <QString>
#include <QDateTime>
#include <QMap>
#include <QVariant>
struct TwitchChatMessage {
QString id; // ID сообщения
QString channel; // Канал
QString sender; // Отправитель
QString message; // Текст сообщения
QDateTime timestamp; // Время отправки
QString userType; // Тип пользователя (mod, broadcaster и т.д.)
bool isModerator; // Модератор
bool isSubscriber; // Сабскрайбер
bool isBroadcaster; // Вещатель (стример)
QString badgeInfo; // Информация о бейджах
QString color; // Цвет ника
QString displayName; // Отображаемое имя
QMap<QString, QString> emotes; // Эмоции
QString roomId; // ID комнаты
QString userId; // ID пользователя
QString rawMessage; // Сырое сообщение
};
Q_DECLARE_METATYPE(TwitchChatMessage)
#endif // TWITCHCHATMESSAGE_H