Chatterino
ChannelPoints.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QJsonObject>
4 #include <QString>
5 
6 #include <magic_enum.hpp>
7 
8 namespace chatterino {
9 
11  enum class Type {
13 
14  INVALID,
15  };
16 
17  QString typeString;
19 
20  QJsonObject data;
21 
22  PubSubCommunityPointsChannelV1Message(const QJsonObject &root);
23 };
24 
25 } // namespace chatterino
26 
27 template <>
28 constexpr magic_enum::customize::customize_t magic_enum::customize::enum_name<
31 {
32  switch (value)
33  {
36  return "reward-redeemed";
37  default:
38  return default_tag;
39  }
40 }
Definition: Application.cpp:48
QString typeString
Definition: ChannelPoints.hpp:17
QJsonObject data
Definition: ChannelPoints.hpp:20
PubSubCommunityPointsChannelV1Message(const QJsonObject &root)
Definition: ChannelPoints.cpp:5
Type type
Definition: ChannelPoints.hpp:18