@LevelUpApi(contract=PUBLIC) public enum LevelUpStatus extends Enum<LevelUpStatus>
Enum Constant and Description |
---|
ERROR_BAD_REQUEST
The request was bad before sending.
|
ERROR_MAINTENANCE
The server is down for maintenance.
|
ERROR_NETWORK
Was unable to get to the server.
|
ERROR_NOT_FOUND
Server responded that the resource requested couldn't be found.
|
ERROR_PARSING
Server responded with JSON that we failed to parse.
|
ERROR_RESPONSE_TOO_LARGE
The response from the server was too big to read.
|
ERROR_SERVER
Server responded with an error code.
|
ERROR_UNKNOWN
No response passed and no error thrown, unknown problem.
|
LOGIN_REQUIRED
The client must be logged in to complete the request.
|
OK
Server responded with success code.
|
PROCESSING
The server is processing a long request.
|
UPGRADE
The server instructed the client that an upgrade is required.
|
Modifier and Type | Method and Description |
---|---|
static LevelUpStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LevelUpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LevelUpStatus OK
public static final LevelUpStatus ERROR_BAD_REQUEST
public static final LevelUpStatus ERROR_NOT_FOUND
public static final LevelUpStatus ERROR_PARSING
public static final LevelUpStatus ERROR_SERVER
public static final LevelUpStatus ERROR_MAINTENANCE
public static final LevelUpStatus ERROR_NETWORK
public static final LevelUpStatus ERROR_RESPONSE_TOO_LARGE
public static final LevelUpStatus ERROR_UNKNOWN
public static final LevelUpStatus LOGIN_REQUIRED
public static final LevelUpStatus PROCESSING
public static final LevelUpStatus UPGRADE
public static LevelUpStatus[] values()
for (LevelUpStatus c : LevelUpStatus.values()) System.out.println(c);
public static LevelUpStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null