Class APResult<T>

java.lang.Object
io.github.archipelagomw.APResult<T>
Type Parameters:
T - The type of the data held

public class APResult<T> extends Object
Small container class for the outcome of client requests.
  • Method Details

    • success

      public static <T> APResult<T> success()
    • success

      public static <T> APResult<T> success(T value)
    • disconnected

      public static <T> APResult<T> disconnected()
    • unauthenticated

      public static <T> APResult<T> unauthenticated()
    • error

      public static <T> APResult<T> error()
    • getCode

      public APResult.ResultCode getCode()
    • getValue

      public T getValue()