Class ShieldBreakAPI.ServerResponse
java.lang.Object
dev.sbmc.freezy.shieldbreakapi.ShieldBreakAPI.ServerResponse
- Enclosing class:
ShieldBreakAPI
Response object for server endpoints.
-
Constructor Details
-
ServerResponse
Constructs a ServerResponse from JSON.- Parameters:
json- the JSON response string
-
-
Method Details
-
getName
- Returns:
- the server name
-
getGroupid
- Returns:
- the server group ID
-
getHost
- Returns:
- the server host
-
getPort
public int getPort()- Returns:
- the server port
-
getCreated
- Returns:
- true if the server was created, false if updated
-