Class MessagedResponse<T>

java.lang.Object
us.ajg0702.queue.api.spigot.MessagedResponse<T>

public class MessagedResponse<T> extends Object
  • Constructor Details

    • MessagedResponse

      public MessagedResponse(T response, String none)
  • Method Details

    • getResponse

      public T getResponse()
      Gets the response from the method.
      Returns:
      The response. Null if there is a "none" message
    • getNone

      public String getNone()
      Gets the "none" message
      Returns:
      The none message. null if there is a response.
    • getEither

      public String getEither()
      Gets either the response (as a string) or the none message, whichever is available
      Returns:
      A string