1package com.netease.nimlib.sdk;
96 return this == KICKOUT ||
this == KICK_BY_OTHER_CLIENT ||
this == FORBIDDEN ||
this == PWD_ERROR ||
this == DATA_UPGRADE;
106 return this == KICKOUT ||
this == KICK_BY_OTHER_CLIENT;
137 if (c.getValue() == value) {
static final short RES_DEVICE_NOT_TRUST
设备不在信任设备表里
static final short RES_SUCCESS
操作成功
static final short RES_ENONEXIST
目标(对象或用户)不存在
static final short RES_NEED_CHANGE_LBS
需要切换LBS 不在ResponseDispatcherPush::makeResponse中传给主进程,在其他地方直接通过RemoteAgent::response上抛
static final short RES_NEED_RECONNECT
需要重连 不在ResponseDispatcherPush::makeResponse中传给主进程,在其他地方直接通过RemoteAgent::response上抛
static final short RES_VERSION_EXPIRED
版本号太旧,需要升级
static final short RES_ACCOUNT_BLOCK
帐号被禁用
static final short RES_FORBIDDEN
应用被封禁
static final short RES_EEXIST
对象已经存在
static final short RES_EPARAM
参数错误
static final short RES_EUIDPASS
密码不正确
static StatusCode typeOfValue(int value)
static StatusCode statusOfResCode(int resCode)
void setDesc(String desc)
StatusCode(int value, String desc)
boolean wontAutoLogin()
判断处于当前状态码时,SDK还会不会继续自动重连登录。
boolean wontAutoLoginForever()
判断处于当前状态码时,SDK还会不会继续自动重连登录,即使进程杀掉重启,也不会再做自动登录。 FORBIDDEN可能会被服务器解禁,PWD_ERROR可能在服务器有修复机制因此这里还是允许进程重启时自动...
KICK_BY_OTHER_CLIENT
被同时在线的其他端主动踢掉