79 lines
1.6 KiB
C
79 lines
1.6 KiB
C
#ifndef TTW_TYPES_H
|
|
#define TTW_TYPES_H
|
|
|
|
#include "qdatetime.h"
|
|
#include <QString>
|
|
#include <QColor>
|
|
|
|
struct TCustomReward {
|
|
QString id;
|
|
QString title;
|
|
QString prompt;
|
|
int cost;
|
|
QString backgroundColor;
|
|
bool isEnabled;
|
|
bool isUserInputRequired;
|
|
bool isMaxPerStreamEnabled;
|
|
int maxPerStream;
|
|
bool isMaxPerUserPerStreamEnabled;
|
|
int maxPerUserPerStream;
|
|
bool isGlobalCooldownEnabled;
|
|
int globalCooldownSeconds;
|
|
bool isPaused;
|
|
bool isInStock;
|
|
bool shouldRedemptionsSkipRequestQueue;
|
|
|
|
TCustomReward()
|
|
: cost(0)
|
|
, isEnabled(true)
|
|
, isUserInputRequired(false)
|
|
, isMaxPerStreamEnabled(false)
|
|
, maxPerStream(0)
|
|
, isMaxPerUserPerStreamEnabled(false)
|
|
, maxPerUserPerStream(0)
|
|
, isGlobalCooldownEnabled(false)
|
|
, globalCooldownSeconds(0)
|
|
, isPaused(false)
|
|
, isInStock(true)
|
|
, shouldRedemptionsSkipRequestQueue(false)
|
|
{}
|
|
};
|
|
|
|
struct TCustomRewardEvent {
|
|
QString id;
|
|
QString rewardId;
|
|
QString userId;
|
|
QString userLogin;
|
|
QString userDisplayName;
|
|
QString userInput;
|
|
QString status;
|
|
QDateTime redeemedAt;
|
|
|
|
TCustomRewardEvent() {}
|
|
};
|
|
|
|
struct ChatBadge {
|
|
QString setId;
|
|
QString versionId;
|
|
QString title;
|
|
QString description;
|
|
QString smallImageUrl;
|
|
QString mediumImageUrl;
|
|
QString largeImageUrl;
|
|
|
|
ChatBadge() {}
|
|
};
|
|
|
|
struct Emote {
|
|
QString id;
|
|
QString name;
|
|
QString imageUrl;
|
|
QString format;
|
|
QString scale;
|
|
QString themeMode;
|
|
|
|
Emote() {}
|
|
};
|
|
|
|
#endif // TTW_TYPES_H
|