Class StateServerResponse
java.lang.Object
za.co.wethinkcode.robots.server.serverResponse.StateServerResponse
- All Implemented Interfaces:
ServerResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface za.co.wethinkcode.robots.shared.ServerResponse
ServerResponse.ServerResponseCode -
Constructor Summary
ConstructorsConstructorDescriptionStateServerResponse(StateClientCommand.StateCommandResult stateCommandResult) -
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 dataGetter for this evaluated RobotState
-
Constructor Details
-
StateServerResponse
-
-
Method Details
-
getData
Getter for a server responses' data- Specified by:
getDatain interfaceServerResponse- Returns:
- the data map
-
getRobotState
Getter for this evaluated RobotState- Returns:
- this. robotState
-
getResult
public getter for a server's response to being given data- Specified by:
getResultin interfaceServerResponse- Returns:
- an acceptable response code.
-
getMessage
Get the message from a server response data (really good for error handling)- Specified by:
getMessagein interfaceServerResponse- Returns:
- a String of the server response's message
-