Eile Mit Weile
Loading...
Searching...
No Matches
throw_dice_request.hpp
1#ifndef EILE_MIT_WEILE_THROW_DICE_REQUEST_HPP
2#define EILE_MIT_WEILE_THROW_DICE_REQUEST_HPP
3
4#include <string>
5#include <utility>
6#include "ClientRequest.hpp"
7
14 public:
15 throw_dice_request(std::string game_id, std::string player_id);
16 void WriteIntoJson(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator) const override;
17 static throw_dice_request* FromJson(const rapidjson::Value& json);
19 private:
21};
22#endif //EILE_MIT_WEILE_THROW_DICE_REQUEST_HPP
Base class for all requests that are being sent from the client to the server.
Definition ClientRequest.hpp:38
This class represents a throw_dice_request from the client.
Definition throw_dice_request.hpp:13
throw_dice_request(std::string game_id, std::string player_id)
Definition throw_dice_request.cpp:4
static throw_dice_request * FromJson(const rapidjson::Value &json)
Definition throw_dice_request.cpp:13
void WriteIntoJson(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
Definition throw_dice_request.cpp:8
Holds the properties that are common to all ClientRequest subclasses.
Definition ClientRequest.hpp:63