1
0
Fork 0
mirror of https://github.com/Chatterino/chatterino2.git synced 2024-11-21 22:24:07 +01:00
mirror-chatterino2/src/providers/twitch/ChannelPointReward.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
616 B
C++
Raw Normal View History

#pragma once
#include "messages/ImageSet.hpp"
#include <QJsonObject>
namespace chatterino {
struct ChannelPointReward {
ChannelPointReward(const QJsonObject &redemption);
ChannelPointReward() = delete;
QString id;
QString channelId;
QString title;
int cost;
ImageSet image;
bool isUserInputRequired = false;
bool isBits = false;
QString emoteId; // currently only for celebrations
QString emoteName; // currently only for celebrations
struct {
QString id;
QString login;
QString displayName;
} user;
};
} // namespace chatterino