Class RobotsCommand.RobotsCommandResult

java.lang.Object
za.co.wethinkcode.robots.server.serverCommands.RobotsCommand.RobotsCommandResult
All Implemented Interfaces:
CommandResult
Enclosing class:
RobotsCommand

public class RobotsCommand.RobotsCommandResult extends Object implements CommandResult
  • Constructor Details

    • RobotsCommandResult

      public RobotsCommandResult(WorldState worldstate)
  • Method Details

    • writeToDisk

      public void writeToDisk()
      Allows us to write our output to disk
      Specified by:
      writeToDisk in interface CommandResult
    • toJson

      public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
      Jackson serialisation string
      Returns:
      JSON string
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getInternalResponseCode

      public InternalResponseCode getInternalResponseCode()
      Explicitly forces Command Results to return a responseCode
      Specified by:
      getInternalResponseCode in interface CommandResult
      Returns:
      a response code