Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
edhrec_api_response_card_prices.h
Go to the documentation of this file.
1
6
7#ifndef EDHREC_COMMANDER_API_RESPONSE_CARD_PRICES_H
8#define EDHREC_COMMANDER_API_RESPONSE_CARD_PRICES_H
9
10#include <QJsonObject>
11
13{
14public:
15 // Constructor
16 CardPrices() = default;
17
18 // Parse prices from JSON
19 void fromJson(const QJsonObject &json);
20 void debugPrint() const;
21
22 // Getter methods for card prices
23 [[nodiscard]] const QJsonObject &getCardhoarder() const
24 {
25 return cardhoarder;
26 }
27 [[nodiscard]] const QJsonObject &getCardkingdom() const
28 {
29 return cardkingdom;
30 }
31 [[nodiscard]] const QJsonObject &getCardmarket() const
32 {
33 return cardmarket;
34 }
35 [[nodiscard]] const QJsonObject &getFace2face() const
36 {
37 return face2face;
38 }
39 [[nodiscard]] const QJsonObject &getManapool() const
40 {
41 return manapool;
42 }
43 [[nodiscard]] const QJsonObject &getMtgstocks() const
44 {
45 return mtgstocks;
46 }
47 [[nodiscard]] const QJsonObject &getScg() const
48 {
49 return scg;
50 }
51 [[nodiscard]] const QJsonObject &getTcgl() const
52 {
53 return tcgl;
54 }
55 [[nodiscard]] const QJsonObject &getTcgplayer() const
56 {
57 return tcgplayer;
58 }
59
60private:
61 QJsonObject cardhoarder;
62 QJsonObject cardkingdom;
63 QJsonObject cardmarket;
64 QJsonObject face2face;
65 QJsonObject manapool;
66 QJsonObject mtgstocks;
67 QJsonObject scg;
68 QJsonObject tcgl;
69 QJsonObject tcgplayer;
70};
71
72#endif // EDHREC_COMMANDER_API_RESPONSE_CARD_PRICES_H
const QJsonObject & getManapool() const
Definition edhrec_api_response_card_prices.h:39
QJsonObject cardkingdom
Definition edhrec_api_response_card_prices.h:62
QJsonObject mtgstocks
Definition edhrec_api_response_card_prices.h:66
const QJsonObject & getCardkingdom() const
Definition edhrec_api_response_card_prices.h:27
const QJsonObject & getTcgplayer() const
Definition edhrec_api_response_card_prices.h:55
QJsonObject face2face
Definition edhrec_api_response_card_prices.h:64
void fromJson(const QJsonObject &json)
Definition edhrec_api_response_card_prices.cpp:5
QJsonObject tcgl
Definition edhrec_api_response_card_prices.h:68
const QJsonObject & getCardhoarder() const
Definition edhrec_api_response_card_prices.h:23
const QJsonObject & getScg() const
Definition edhrec_api_response_card_prices.h:47
const QJsonObject & getTcgl() const
Definition edhrec_api_response_card_prices.h:51
const QJsonObject & getMtgstocks() const
Definition edhrec_api_response_card_prices.h:43
QJsonObject cardhoarder
Definition edhrec_api_response_card_prices.h:61
QJsonObject manapool
Definition edhrec_api_response_card_prices.h:65
QJsonObject tcgplayer
Definition edhrec_api_response_card_prices.h:69
void debugPrint() const
Definition edhrec_api_response_card_prices.cpp:19
QJsonObject scg
Definition edhrec_api_response_card_prices.h:67
CardPrices()=default
QJsonObject cardmarket
Definition edhrec_api_response_card_prices.h:63
const QJsonObject & getFace2face() const
Definition edhrec_api_response_card_prices.h:35
const QJsonObject & getCardmarket() const
Definition edhrec_api_response_card_prices.h:31