Class LookCommandServerResponse
java.lang.Object
za.co.wethinkcode.robots.server.serverResponse.LookCommandServerResponse
- All Implemented Interfaces:
ServerResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface za.co.wethinkcode.robots.shared.ServerResponse
ServerResponse.ServerResponseCode -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for all responses from server to client. -
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
-
Constructor Details
-
LookCommandServerResponse
Constructor for all responses from server to client. Constructed from the result of a command- Parameters:
commandResult- result of a command to construct this object.
-
LookCommandServerResponse
-
-
Method Details
-
getData
Getter for a server responses' data- Specified by:
getDatain interfaceServerResponse- Returns:
- the data map
-
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
-