mirror-chatterino2/src/providers/twitch/ChannelPointReward.hpp

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

31 lines
675 B
C++
Raw Normal View History

#pragma once
#include "common/Aliases.hpp"
#include "messages/ImageSet.hpp"
#include <QJsonObject>
#define TWITCH_CHANNEL_POINT_REWARD_URL(x) \
QString("https://static-cdn.jtvnw.net/custom-reward-images/default-%1") \
.arg(x)
namespace chatterino {
struct ChannelPointReward {
ChannelPointReward(const QJsonObject &redemption);
ChannelPointReward() = delete;
QString id;
QString channelId;
QString title;
int cost;
ImageSet image;
bool isUserInputRequired = false;
struct {
QString id;
QString login;
QString displayName;
} user;
};
} // namespace chatterino