Class StateClientCommand.StateCommandResult

java.lang.Object
za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
All Implemented Interfaces:
CommandResult
Enclosing class:
StateClientCommand

public class StateClientCommand.StateCommandResult extends ClientCommandResult
  • Constructor Details

  • Method Details

    • getRobotState

      public RobotState getRobotState()
      Getter of the State command robot state
      Returns:
      the target robot's state
    • writeToDisk

      public void writeToDisk()
      Allows us to write our output to disk
    • getInternalResponseCode

      public InternalResponseCode getInternalResponseCode()
      Explicitly forces Command Results to return a responseCode
      Returns:
      a response code
    • getImplementedClientCommands

      public ImplementedClientCommands getImplementedClientCommands()
      Getter for the Client Command Type of this command
      Specified by:
      getImplementedClientCommands in class ClientCommandResult
      Returns:
      what type of command this is
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in class ClientCommandResult
      Returns:
      the result's message (useful for debugging)