Enum ProfileFetchResult

java.lang.Object
java.lang.Enum<ProfileFetchResult>
net.citizensnpcs.npc.skin.profile.ProfileFetchResult
All Implemented Interfaces:
Serializable, Comparable<ProfileFetchResult>, java.lang.constant.Constable

public enum ProfileFetchResult extends Enum<ProfileFetchResult>
The result status of a profile fetch.
  • Enum Constant Details

    • FAILED

      public static final ProfileFetchResult FAILED
      The profile request failed for unknown reasons.
    • NOT_FOUND

      public static final ProfileFetchResult NOT_FOUND
      The profile request failed because the profile was not found.
    • PENDING

      public static final ProfileFetchResult PENDING
      The profile has not been fetched yet.
    • SUCCESS

      public static final ProfileFetchResult SUCCESS
      The profile was successfully fetched.
    • TOO_MANY_REQUESTS

      public static final ProfileFetchResult TOO_MANY_REQUESTS
      The profile request failed because too many requests were sent.
  • Method Details

    • values

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

      public static ProfileFetchResult valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null