Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
request_response Class Reference
Inheritance diagram for request_response:
server_response serializable

Public Member Functions

 request_response (std::string game_id, std::string req_id, bool success, rapidjson::Value *state_json, std::string err)
 
virtual void write_into_json (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
 
- Public Member Functions inherited from server_response
ResponseType get_type () const
 
std::string get_game_id () const
 
- Public Member Functions inherited from serializable
virtual rapidjson::Document * to_json () const
 

Static Public Member Functions

static request_responsefrom_json (const rapidjson::Value &json)
 
- Static Public Member Functions inherited from server_response
static server_responsefrom_json (const rapidjson::Value &json)
 

Additional Inherited Members

- Protected Member Functions inherited from server_response
 server_response (base_class_properties)
 
- Static Protected Member Functions inherited from server_response
static base_class_properties create_base_class_properties (ResponseType type, const std::string &game_id)
 
static base_class_properties extract_base_class_properties (const rapidjson::Value &json)
 
- Protected Attributes inherited from server_response
std::string _game_id
 
ResponseType _type
 

Member Function Documentation

◆ write_into_json()

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

Reimplemented from server_response.


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