lilypad.client.connect.api.result
Enum StatusCode

java.lang.Object
  extended by java.lang.Enum<StatusCode>
      extended by lilypad.client.connect.api.result.StatusCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StatusCode>

public enum StatusCode
extends java.lang.Enum<StatusCode>


Enum Constant Summary
INVALID_GENERIC
          Failure of any reason relative to what the result.
INVALID_ROLE
          Failure due to the fact of the player not having the required role to make the request.
SUCCESS
          Success.
 
Method Summary
static StatusCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StatusCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INVALID_GENERIC

public static final StatusCode INVALID_GENERIC
Failure of any reason relative to what the result. entitles.


INVALID_ROLE

public static final StatusCode INVALID_ROLE
Failure due to the fact of the player not having the required role to make the request.


SUCCESS

public static final StatusCode SUCCESS
Success.

Method Detail

values

public static StatusCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StatusCode c : StatusCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StatusCode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null