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

Classes

struct  base_class_properties
 

Public Member Functions

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

Static Public Member Functions

static server_responsefrom_json (const rapidjson::Value &json)
 

Protected Member Functions

 server_response (base_class_properties)
 

Static Protected Member Functions

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

std::string _game_id
 
ResponseType _type
 

Member Function Documentation

◆ write_into_json()

void server_response::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: