summaryrefslogtreecommitdiff
path: root/src/web_service/announce_room_json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/web_service/announce_room_json.cpp')
-rw-r--r--src/web_service/announce_room_json.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web_service/announce_room_json.cpp b/src/web_service/announce_room_json.cpp
index 082bebaa9..0aae8e215 100644
--- a/src/web_service/announce_room_json.cpp
+++ b/src/web_service/announce_room_json.cpp
@@ -54,7 +54,7 @@ static void to_json(nlohmann::json& json, const Room& room) {
54} 54}
55 55
56static void from_json(const nlohmann::json& json, Room& room) { 56static void from_json(const nlohmann::json& json, Room& room) {
57 room.verify_UID = json.at("externalGuid").get<std::string>(); 57 room.verify_uid = json.at("externalGuid").get<std::string>();
58 room.ip = json.at("address").get<std::string>(); 58 room.ip = json.at("address").get<std::string>();
59 room.information.name = json.at("name").get<std::string>(); 59 room.information.name = json.at("name").get<std::string>();
60 try { 60 try {
@@ -116,7 +116,7 @@ WebService::WebResult RoomJson::Register() {
116 auto reply_json = nlohmann::json::parse(result.returned_data); 116 auto reply_json = nlohmann::json::parse(result.returned_data);
117 room = reply_json.get<AnnounceMultiplayerRoom::Room>(); 117 room = reply_json.get<AnnounceMultiplayerRoom::Room>();
118 room_id = reply_json.at("id").get<std::string>(); 118 room_id = reply_json.at("id").get<std::string>();
119 return WebService::WebResult{WebService::WebResult::Code::Success, "", room.verify_UID}; 119 return WebService::WebResult{WebService::WebResult::Code::Success, "", room.verify_uid};
120} 120}
121 121
122void RoomJson::ClearPlayers() { 122void RoomJson::ClearPlayers() {