public enum StatusCode extends java.lang.Enum<StatusCode>
Enum Constant and Description |
---|
CONNECTING
Connecting
|
DATA_UPGRADE
Data upgrade
|
FORBIDDEN
The account is banned by the server
|
INVALID
Undefined
|
KICK_BY_OTHER_CLIENT
Kicked by concurrent logins on other clients
|
KICKOUT
Login gets invalidated when another login using the same account succeeds on other devices
|
LOGINED
Logged in
|
LOGINING
Logging in
|
NET_BROKEN
Disconnected
|
PWD_ERROR
Incorrect username or password
|
SYNCING
Syncing data
|
UNLOGIN
Not logged in or login failed
|
VER_ERROR
Client verison error
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDesc() |
int |
getValue() |
void |
setDesc(java.lang.String desc) |
boolean |
shouldReLogin() |
static StatusCode |
statusOfResCode(int resCode) |
static StatusCode |
typeOfValue(int value) |
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.
|
boolean |
wontAutoLogin()
Specify whether to continue reconnecting for login with the current status code.
|
boolean |
wontAutoLoginForever()
Specify whether to continue reconnecting for login with the current status code, even if the process is killed, automatic login will not resume.
|
public static final StatusCode INVALID
public static final StatusCode UNLOGIN
public static final StatusCode NET_BROKEN
public static final StatusCode CONNECTING
public static final StatusCode LOGINING
public static final StatusCode SYNCING
public static final StatusCode LOGINED
public static final StatusCode KICKOUT
public static final StatusCode KICK_BY_OTHER_CLIENT
public static final StatusCode FORBIDDEN
public static final StatusCode VER_ERROR
public static final StatusCode PWD_ERROR
public static final StatusCode DATA_UPGRADE
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean wontAutoLogin()
public boolean wontAutoLoginForever()
public boolean shouldReLogin()
public int getValue()
public java.lang.String getDesc()
public void setDesc(java.lang.String desc)
public static StatusCode typeOfValue(int value)
public static StatusCode statusOfResCode(int resCode)