public enum StatusCode extends java.lang.Enum<StatusCode>
枚举常量和说明 |
---|
CONNECTING
正在连接服务器
|
DATA_UPGRADE
数据升级
|
FORBIDDEN
被服务器禁止登录
|
INVALID
未定义
|
KICK_BY_OTHER_CLIENT
被同时在线的其他端主动踢掉
|
KICKOUT
被其他端的登录踢掉
|
LOGINED
已成功登录
|
LOGINING
正在登录中
|
LOGOUT
主动退出
|
NEED_CHANGE_LBS
需要更新LBS
|
NEED_RECONNECT
需要重连
|
NET_BROKEN
网络连接已断开
|
PWD_ERROR
用户名或密码错误
|
SYNCING
正在同步数据
|
UNLOGIN
未登录/登录失败
|
VER_ERROR
客户端版本错误
|
限定符和类型 | 方法和说明 |
---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static StatusCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
boolean |
wontAutoLogin()
判断处于当前状态码时,SDK还会不会继续自动重连登录。
|
boolean |
wontAutoLoginForever()
判断处于当前状态码时,SDK还会不会继续自动重连登录,即使进程杀掉重启,也不会再做自动登录。
|
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 final StatusCode NEED_RECONNECT
public static final StatusCode NEED_CHANGE_LBS
public static final StatusCode LOGOUT
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public 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)