Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
src
common
network
requests
start_game_request.h
1
//
2
// Created by Manuel on 29.01.2021.
3
//
4
5
#ifndef WIZARD_START_GAME_REQUEST_H
6
#define WIZARD_START_GAME_REQUEST_H
7
8
9
#include <string>
10
#include "client_request.h"
11
#include "../../../../rapidjson/include/rapidjson/document.h"
12
13
class
start_game_request
:
public
client_request
{
14
15
private
:
16
17
/*
18
* Private constructor for deserialization
19
*/
20
explicit
start_game_request
(
base_class_properties
);
21
22
public
:
23
start_game_request
(std::string game_id, std::string player_id);
24
virtual
void
write_into_json(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const override
;
25
static
start_game_request
* from_json(
const
rapidjson::Value& json);
26
};
27
28
#endif
//WIZARD_START_GAME_REQUEST_H
client_request
Definition
client_request.h:30
start_game_request
Definition
start_game_request.h:13
client_request::base_class_properties
Definition
client_request.h:33
Generated by
1.12.0