Enum LoginResponse
- java.lang.Object
-
- java.lang.Enum<LoginResponse>
-
- net.eternalclient.api.listeners.loginResponse.LoginResponse
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LoginResponse>
public enum LoginResponse extends java.lang.Enum<LoginResponse>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoginResponse
get(int responseCode)
int
getCode()
static LoginResponse
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LoginResponse[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_CONNECTING
public static final LoginResponse ERROR_CONNECTING
-
UNEXPECTED_RESPONSE
public static final LoginResponse UNEXPECTED_RESPONSE
-
SUCCESSFUL_LOGIN
public static final LoginResponse SUCCESSFUL_LOGIN
-
INVALID_DETAILS
public static final LoginResponse INVALID_DETAILS
-
BANNED
public static final LoginResponse BANNED
-
ALREADY_LOGGED_IN
public static final LoginResponse ALREADY_LOGGED_IN
-
GAME_UPDATE
public static final LoginResponse GAME_UPDATE
-
WORLD_FULL
public static final LoginResponse WORLD_FULL
-
LOGIN_SERVER_OFFLINE
public static final LoginResponse LOGIN_SERVER_OFFLINE
-
LOGIN_LIMIT_EXCEEDED
public static final LoginResponse LOGIN_LIMIT_EXCEEDED
-
BAD_SESSION_ID
public static final LoginResponse BAD_SESSION_ID
-
SUSPECTED_HIJACK
public static final LoginResponse SUSPECTED_HIJACK
-
MEMBERS_REQUIRED
public static final LoginResponse MEMBERS_REQUIRED
-
SERVER_UPDATE
public static final LoginResponse SERVER_UPDATE
-
ANOTHER_SERVER
public static final LoginResponse ANOTHER_SERVER
-
TOO_MANY_ATTEMPTS
public static final LoginResponse TOO_MANY_ATTEMPTS
-
MEMBERS_ONLY_AREA
public static final LoginResponse MEMBERS_ONLY_AREA
-
LOCKED
public static final LoginResponse LOCKED
-
CLOSED_BETA
public static final LoginResponse CLOSED_BETA
-
INVALID_LOGIN_SERVER
public static final LoginResponse INVALID_LOGIN_SERVER
-
WORLD_TRANSFER
public static final LoginResponse WORLD_TRANSFER
-
MALFORMED_LOGIN_PACKET
public static final LoginResponse MALFORMED_LOGIN_PACKET
-
NO_REPLY
public static final LoginResponse NO_REPLY
-
ERROR_LOADING_PROFILE
public static final LoginResponse ERROR_LOADING_PROFILE
-
UNEXPECTED_LOGIN_RESPONSE
public static final LoginResponse UNEXPECTED_LOGIN_RESPONSE
-
ADDRESS_BAN
public static final LoginResponse ADDRESS_BAN
-
SERVICE_UNAVAILABLE
public static final LoginResponse SERVICE_UNAVAILABLE
-
AUTH_REQUIRED
public static final LoginResponse AUTH_REQUIRED
-
UNKNOWN_RESPONSE_CODE
public static final LoginResponse UNKNOWN_RESPONSE_CODE
-
-
Method Detail
-
values
public static LoginResponse[] 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 (LoginResponse c : LoginResponse.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoginResponse 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 namejava.lang.NullPointerException
- if the argument is null
-
get
public static LoginResponse get(int responseCode)
-
getCode
public int getCode()
-
-