Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
archidekt_api_response_deck_category.h
Go to the documentation of this file.
1#ifndef COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_CATEGORY_H
2#define COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_CATEGORY_H
3
4#include <QJsonObject>
5#include <QString>
6
8{
9public:
10 // Constructor
12
13 // Parse deck-related data from JSON
14 void fromJson(const QJsonObject &json);
15
16 // Debug method for logging
17 void debugPrint() const;
18
19 [[nodiscard]] int getId() const
20 {
21 return id;
22 }
23 [[nodiscard]] QString getName() const
24 {
25 return name;
26 }
27 [[nodiscard]] bool getIsPremier() const
28 {
29 return isPremier;
30 }
31 [[nodiscard]] bool getIncludedInDeck() const
32 {
33 return includedInDeck;
34 }
35 [[nodiscard]] bool getIncludedInPrice() const
36 {
37 return includedInPrice;
38 }
39
40private:
41 int id;
42 QString name;
46};
47
48#endif // COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_CATEGORY_H
void debugPrint() const
Definition archidekt_api_response_deck_category.cpp:16
bool includedInDeck
Definition archidekt_api_response_deck_category.h:44
int id
Definition archidekt_api_response_deck_category.h:41
QString name
Definition archidekt_api_response_deck_category.h:42
QString getName() const
Definition archidekt_api_response_deck_category.h:23
bool getIsPremier() const
Definition archidekt_api_response_deck_category.h:27
bool isPremier
Definition archidekt_api_response_deck_category.h:43
void fromJson(const QJsonObject &json)
Definition archidekt_api_response_deck_category.cpp:7
bool getIncludedInPrice() const
Definition archidekt_api_response_deck_category.h:35
int getId() const
Definition archidekt_api_response_deck_category.h:19
bool includedInPrice
Definition archidekt_api_response_deck_category.h:45
bool getIncludedInDeck() const
Definition archidekt_api_response_deck_category.h:31