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_owner.h
Go to the documentation of this file.
1#ifndef COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_OWNER_H
2#define COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_OWNER_H
3
4#include <QDebug>
5#include <QJsonArray>
6#include <QJsonObject>
7#include <QString>
8#include <QVector>
9
11{
12public:
13 // Constructor
15
16 // Parse deck-related data from JSON
17 void fromJson(const QJsonObject &json);
18
19 // Debug method for logging
20 void debugPrint() const;
21
22 [[nodiscard]] QString getName() const
23 {
24 return userName;
25 }
26
27private:
28 int id;
29 QString userName;
30 QUrl avatar;
33 QStringList roles;
34};
35
36#endif // COCKATRICE_ARCHIDEKT_API_RESPONSE_DECK_OWNER_H
void fromJson(const QJsonObject &json)
Definition archidekt_api_response_deck_owner.cpp:3
QStringList roles
Definition archidekt_api_response_deck_owner.h:33
int id
Definition archidekt_api_response_deck_owner.h:28
void debugPrint() const
Definition archidekt_api_response_deck_owner.cpp:14
int pledgeLevel
Definition archidekt_api_response_deck_owner.h:32
QUrl avatar
Definition archidekt_api_response_deck_owner.h:30
QString getName() const
Definition archidekt_api_response_deck_owner.h:22
bool moderator
Definition archidekt_api_response_deck_owner.h:31
QString userName
Definition archidekt_api_response_deck_owner.h:29