Package za.co.wethinkcode.robots.shared
Interface CommandResult
- All Known Implementing Classes:
ClientCommandResult,DumpCommandResult,ErrorCommandResult,LaunchClientCommand.LaunchCommandResult,LookClientCommand.LookClientCommandResult,RobotsCommand.RobotsCommandResult,StateClientCommand.StateCommandResult
public interface CommandResult
Interface that allows us to abstract the similarities of all command results
-
Method Summary
Modifier and TypeMethodDescriptionExplicitly forces Command Results to return a responseCodetoString()Standard toString for developer usevoidAllows us to write our output to disk
-
Method Details
-
writeToDisk
void writeToDisk()Allows us to write our output to disk -
toString
String toString()Standard toString for developer use -
getInternalResponseCode
InternalResponseCode getInternalResponseCode()Explicitly forces Command Results to return a responseCode- Returns:
- a response code
-