36 std::string _player_id;
42 std::string _player_id;
46 static base_class_properties create_base_class_properties(RequestType type, std::string req_id, std::string& player_id, std::string& game_id);
52 static const std::unordered_map<std::string, RequestType> _string_to_request_type;
54 static const std::unordered_map<RequestType, std::string> _request_type_to_string;
59 [[nodiscard]] RequestType get_type()
const {
return this->_type; }
60 [[nodiscard]] std::string get_req_id()
const {
return this->_req_id; }
61 [[nodiscard]] std::string get_game_id()
const {
return this->_game_id; }
62 [[nodiscard]] std::string get_player_id()
const {
return this->_player_id; }
69 void write_into_json(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const override;
71 [[nodiscard]]
virtual std::string to_string()
const;