Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform 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
7
8#include <QDebug>
9#include <QJsonArray>
10#include <QJsonObject>
11#include <QString>
12#include <QVector>
13
15{
16public:
17 // Constructor
19
20 // Parse deck-related data from JSON
21 void fromJson(const QJsonObject &json);
22
23 // Debug method for logging
24 void debugPrint() const;
25
26 [[nodiscard]] int getId() const
27 {
28 return id;
29 }
30 [[nodiscard]] QString getName() const
31 {
32 return name;
33 }
34 [[nodiscard]] bool getIsPremier() const
35 {
36 return isPremier;
37 }
38 [[nodiscard]] bool getIncludedInDeck() const
39 {
40 return includedInDeck;
41 }
42 [[nodiscard]] bool getIncludedInPrice() const
43 {
44 return includedInPrice;
45 }
46
47private:
48 int id;
49 QString name;
53};
54
55#endif // COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_CATEGORY_H
void debugPrint() const
Definition archidekt_api_response_deck_category.cpp:12
bool includedInDeck
Definition archidekt_api_response_deck_category.h:51
int id
Definition archidekt_api_response_deck_category.h:48
QString name
Definition archidekt_api_response_deck_category.h:49
QString getName() const
Definition archidekt_api_response_deck_category.h:30
bool getIsPremier() const
Definition archidekt_api_response_deck_category.h:34
bool isPremier
Definition archidekt_api_response_deck_category.h:50
void fromJson(const QJsonObject &json)
Definition archidekt_api_response_deck_category.cpp:3
bool getIncludedInPrice() const
Definition archidekt_api_response_deck_category.h:42
int getId() const
Definition archidekt_api_response_deck_category.h:26
bool includedInPrice
Definition archidekt_api_response_deck_category.h:52
bool getIncludedInDeck() const
Definition archidekt_api_response_deck_category.h:38