Eile Mit Weile
Loading...
Searching...
No Matches
skip_turn_request.hpp
1#ifndef EILE_MIT_WEILE_SKIP_TURN_REQUEST_HPP
2#define EILE_MIT_WEILE_SKIP_TURN_REQUEST_HPP
3
4#include <string>
5#include <utility>
6#include "ClientRequest.hpp"
7
14 public:
15 skip_turn_request(std::string player_id, std::string game_id);
16 void WriteIntoJson(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator) const override;
17 static skip_turn_request* FromJson(const rapidjson::Value& json);
19 private:
21};
22
23
24#endif //EILE_MIT_WEILE_SKIP_TURN_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 skip_turn_request from the client.
Definition skip_turn_request.hpp:13
static skip_turn_request * FromJson(const rapidjson::Value &json)
Definition skip_turn_request.cpp:13
void WriteIntoJson(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
Definition skip_turn_request.cpp:9
skip_turn_request(std::string player_id, std::string game_id)
Definition skip_turn_request.cpp:4
Holds the properties that are common to all ClientRequest subclasses.
Definition ClientRequest.hpp:63