|
Eile Mit Weile
|
This class represents a start_game_request from the client. More...
#include <start_game_request.hpp>
Public Member Functions | |
| start_game_request (std::string game_id, std::string player_id) | |
| void | WriteIntoJson (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override |
Public Member Functions inherited from ClientRequest | |
| RequestType | GetType () const |
| std::string | GetReqId () const |
| std::string | GetGameId () const |
| std::string | GetPlayerId () const |
Public Member Functions inherited from Serializable | |
| virtual rapidjson::Document * | ToJson () const |
Static Public Member Functions | |
| static start_game_request * | FromJson (const rapidjson::Value &json) |
Private Member Functions | |
| start_game_request (BaseClassProperties) | |
Additional Inherited Members | |
Static Public Attributes inherited from ClientRequest | |
| static const std::unordered_map< std::string, RequestType > | _string_to_request_type |
| static const std::unordered_map< RequestType, std::string > | _request_type_to_string |
Protected Member Functions inherited from ClientRequest | |
| ClientRequest (const BaseClassProperties &) | |
Static Protected Member Functions inherited from ClientRequest | |
| static BaseClassProperties | CreateBaseClassProperties (RequestType type, std::string req_id, std::string &player_id, std::string &game_id) |
| static BaseClassProperties | ExtractBaseClassProperties (const rapidjson::Value &json) |
Protected Attributes inherited from ClientRequest | |
| RequestType | _type |
| std::string | _req_id |
| std::string | _player_id |
| std::string | _game_id |
This class represents a start_game_request from the client.
| start_game_request::start_game_request | ( | std::string | game_id, |
| std::string | player_id | ||
| ) |
public constructor for a start_game_request with a player id and a game id
|
explicitprivate |
private constructor for serialization.
|
static |
creates a start_game_request from a json object
|
overridevirtual |
writes the start_game_request into a json object
Reimplemented from ClientRequest.