mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
1043f9f803
* refactor: remove unnecessary includes in headers * fix: formatting * chore: changelog * fix: scrollbar * fix: suggestions and old appbase remains * fix: suggestion * fix: missing Qt forward declarations * fix: another qt include * fix: includes for precompiled-headers=off * Add missing `<memory>` includes * Add missing `#pragma once` * Fix tests Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
30 lines
675 B
C++
30 lines
675 B
C++
#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
|