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