Enum Class Result

java.lang.Object
java.lang.Enum<Result>
de.jcm.discordgamesdk.Result
All Implemented Interfaces:
Serializable, Comparable<Result>, Constable

public enum Result extends Enum<Result>
Enum for results the SDK might return.
See Also:
  • Enum Constant Details

    • OK

      public static final Result OK
      Everything is fine
    • SERVICE_UNAVAILABLE

      public static final Result SERVICE_UNAVAILABLE
    • INVALID_VERSION

      public static final Result INVALID_VERSION
    • LOCK_FAILED

      public static final Result LOCK_FAILED
    • INTERNAL_ERROR

      public static final Result INTERNAL_ERROR
    • INVALID_PAYLOAD

      public static final Result INVALID_PAYLOAD
    • INVALID_COMMAND

      public static final Result INVALID_COMMAND
    • INVALID_PERMISSIONS

      public static final Result INVALID_PERMISSIONS
    • NOT_FETCHED

      public static final Result NOT_FETCHED
    • NOT_FOUND

      public static final Result NOT_FOUND
    • CONFLICT

      public static final Result CONFLICT
    • INVALID_SECRET

      public static final Result INVALID_SECRET
    • INVALID_JOIN_SECRET

      public static final Result INVALID_JOIN_SECRET
    • NO_ELIGIBLE_ACTIVITY

      public static final Result NO_ELIGIBLE_ACTIVITY
    • INVALID_INVITE

      public static final Result INVALID_INVITE
    • NOT_AUTHENTICATED

      public static final Result NOT_AUTHENTICATED
    • INVALID_ACCESS_TOKEN

      public static final Result INVALID_ACCESS_TOKEN
    • APPLICATION_MISMATCH

      public static final Result APPLICATION_MISMATCH
    • INVALID_DATA_URL

      public static final Result INVALID_DATA_URL
    • INVALID_BASE64

      public static final Result INVALID_BASE64
    • NOT_FILTERED

      public static final Result NOT_FILTERED
    • LOBBY_FULL

      public static final Result LOBBY_FULL
    • INVALID_LOBBY_SECRET

      public static final Result INVALID_LOBBY_SECRET
    • INVALID_FILENAME

      public static final Result INVALID_FILENAME
    • INVALID_FILE_SIZE

      public static final Result INVALID_FILE_SIZE
    • INVALID_ENTITLEMENT

      public static final Result INVALID_ENTITLEMENT
    • NOT_INSTALLED

      public static final Result NOT_INSTALLED
    • NOT_RUNNING

      public static final Result NOT_RUNNING
    • INSUFFICIENT_BUFFER

      public static final Result INSUFFICIENT_BUFFER
    • PURCHASE_CANCELED

      public static final Result PURCHASE_CANCELED
    • INVALID_GUILD

      public static final Result INVALID_GUILD
    • INVALID_EVENT

      public static final Result INVALID_EVENT
    • INVALID_CHANNEL

      public static final Result INVALID_CHANNEL
    • INVALID_ORIGIN

      public static final Result INVALID_ORIGIN
    • RATE_LIMITED

      public static final Result RATE_LIMITED
    • OAUTH2_ERROR

      public static final Result OAUTH2_ERROR
    • SELECT_CHANNEL_TIMEOUT

      public static final Result SELECT_CHANNEL_TIMEOUT
    • GET_GUILD_TIMEOUT

      public static final Result GET_GUILD_TIMEOUT
    • SELECT_VOICE_FORCE_REQUIRED

      public static final Result SELECT_VOICE_FORCE_REQUIRED
    • CAPTURE_SHORTCUT_ALREADY_LISTENING

      public static final Result CAPTURE_SHORTCUT_ALREADY_LISTENING
    • UNAUTHORIZED_FOR_ACHIEVEMENT

      public static final Result UNAUTHORIZED_FOR_ACHIEVEMENT
    • INVALID_GIFT_CODE

      public static final Result INVALID_GIFT_CODE
    • PURCHASE_ERROR

      public static final Result PURCHASE_ERROR
    • TRANSACTION_ABORTED

      public static final Result TRANSACTION_ABORTED
  • Method Details

    • values

      public static Result[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Result valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromCode

      public static Result fromCode(int code)