Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
client_request Class Reference
Inheritance diagram for client_request:
serializable decide_trump_color_request estimate_tricks_request join_game_request leave_game_request play_card_request start_game_request

Classes

struct  base_class_properties
 

Public Member Functions

RequestType get_type () const
 
std::string get_req_id () const
 
std::string get_game_id () const
 
std::string get_player_id () const
 
void write_into_json (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
 
virtual std::string to_string () const
 
- Public Member Functions inherited from serializable
virtual rapidjson::Document * to_json () const
 

Static Public Member Functions

static client_requestfrom_json (const rapidjson::Value &json)
 

Protected Member Functions

 client_request (base_class_properties)
 

Static Protected Member Functions

static base_class_properties create_base_class_properties (RequestType type, std::string req_id, std::string &player_id, std::string &game_id)
 
static base_class_properties extract_base_class_properties (const rapidjson::Value &json)
 

Protected Attributes

RequestType _type
 
std::string _req_id
 
std::string _player_id
 
std::string _game_id
 

Member Function Documentation

◆ write_into_json()

void client_request::write_into_json ( rapidjson::Value & json,
rapidjson::Document::AllocatorType & allocator ) const
overridevirtual

Implements serializable.


The documentation for this class was generated from the following files: