Interface ServerResponse

All Known Implementing Classes:
ClientSideServerResponse, LaunchCommandServerResponse, LookCommandServerResponse, StateServerResponse

public interface ServerResponse
Interface that abstracts the relationship between all responses by the server to the client
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enum for the Response Code that gets send back by the server
  • Method Summary

    Modifier and Type
    Method
    Description
    Getter for a server responses' data
    Get the message from a server response data (really good for error handling)
    public getter for a server's response to being given data
  • Method Details

    • getData

      Map<String,?> getData()
      Getter for a server responses' data
      Returns:
      the data map
    • getResult

      public getter for a server's response to being given data
      Returns:
      an acceptable response code.
    • getMessage

      String getMessage()
      Get the message from a server response data (really good for error handling)
      Returns:
      a String of the server response's message