Package za.co.wethinkcode.robots.shared
Interface ServerResponse
- All Known Implementing Classes:
ClientSideServerResponse,LaunchCommandServerResponse,LookCommandServerResponse,StateServerResponse
public interface ServerResponse
Interface that abstracts the relationship between all responses by the server to the client
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnum for the Response Code that gets send back by the server -
Method Summary
Modifier and TypeMethodDescriptiongetData()Getter for a server responses' dataGet the message from a server response data (really good for error handling)public getter for a server's response to being given data
-
Method Details
-
getData
Getter for a server responses' data- Returns:
- the data map
-
getResult
ServerResponse.ServerResponseCode getResult()public getter for a server's response to being given data- Returns:
- an acceptable response code.
-
getMessage
String getMessage()Get the message from a server response data (really good for error handling)- Returns:
- a String of the server response's message
-