Eile Mit Weile
Loading...
Searching...
No Matches
throw_dice_request Class Reference

This class represents a throw_dice_request from the client. More...

#include <throw_dice_request.hpp>

Inheritance diagram for throw_dice_request:
ClientRequest Serializable

Public Member Functions

 throw_dice_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::DocumentToJson () const
 

Static Public Member Functions

static throw_dice_requestFromJson (const rapidjson::Value &json)
 

Private Member Functions

 throw_dice_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
 

Detailed Description

This class represents a throw_dice_request from the client.

Constructor & Destructor Documentation

◆ throw_dice_request() [1/2]

throw_dice_request::throw_dice_request ( std::string  game_id,
std::string  player_id 
)

public constructor for a throw_dice_request with a player id and a game id

◆ throw_dice_request() [2/2]

throw_dice_request::throw_dice_request ( ClientRequest::BaseClassProperties  props)
explicitprivate

private constructor for serialization.

Member Function Documentation

◆ FromJson()

throw_dice_request * throw_dice_request::FromJson ( const rapidjson::Value json)
static

creates a throw_dice_request from a json object

◆ WriteIntoJson()

void throw_dice_request::WriteIntoJson ( rapidjson::Value json,
rapidjson::Document::AllocatorType &  allocator 
) const
overridevirtual

writes the throw_dice_request into a json object

Reimplemented from ClientRequest.


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