2020-08-08 15:37:22 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "messages/ImageSet.hpp"
|
|
|
|
|
2022-05-07 17:22:39 +02:00
|
|
|
#include <QJsonObject>
|
2021-05-08 15:57:00 +02:00
|
|
|
|
2020-08-08 15:37:22 +02:00
|
|
|
namespace chatterino {
|
2024-08-03 12:00:58 +02:00
|
|
|
|
2020-08-08 15:37:22 +02:00
|
|
|
struct ChannelPointReward {
|
2022-05-07 17:22:39 +02:00
|
|
|
ChannelPointReward(const QJsonObject &redemption);
|
2020-08-08 15:37:22 +02:00
|
|
|
ChannelPointReward() = delete;
|
|
|
|
QString id;
|
|
|
|
QString channelId;
|
|
|
|
QString title;
|
|
|
|
int cost;
|
|
|
|
ImageSet image;
|
|
|
|
bool isUserInputRequired = false;
|
2024-06-22 13:03:49 +02:00
|
|
|
bool isBits = false;
|
|
|
|
QString emoteId; // currently only for celebrations
|
|
|
|
QString emoteName; // currently only for celebrations
|
2020-08-08 15:37:22 +02:00
|
|
|
|
|
|
|
struct {
|
|
|
|
QString id;
|
|
|
|
QString login;
|
|
|
|
QString displayName;
|
|
|
|
} user;
|
2024-09-28 12:40:15 +02:00
|
|
|
|
|
|
|
QJsonObject toJson() const;
|
2020-08-08 15:37:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|