|
|
@ -31,6 +31,7 @@ public class Server { |
|
|
|
int player_count; |
|
|
|
int max_players; |
|
|
|
boolean status; |
|
|
|
String map; |
|
|
|
String color; |
|
|
|
String workshop; |
|
|
|
List<String> naming; |
|
|
@ -59,6 +60,7 @@ public class Server { |
|
|
|
|
|
|
|
setMax_players(response.getResult().getMaxPlayers()); |
|
|
|
setPlayer_count(response.getResult().getNumOfPlayers()); |
|
|
|
setMap(response.getResult().getMapName()); |
|
|
|
setStatus(true); |
|
|
|
} |
|
|
|
|
|
|
@ -128,6 +130,7 @@ public class Server { |
|
|
|
setMax_players(0); |
|
|
|
setPlayer_count(0); |
|
|
|
players.clear(); |
|
|
|
setMap(""); |
|
|
|
} |
|
|
|
|
|
|
|
@JsonIgnore |
|
|
|