连接状态
class ConnectionStatus {
static const int idle = 0;
static const int connected = 1;
static const int disconnected = 2;
static const int connecting = 3;
static const int failure = 4;
}
会话类型
class ConversationType {
static const int unknown = 0;
static const int private = 1;
static const int group = 2;
static const int chatroom = 3;
static const int system = 4;
}
拉取方向
class PullDirection {
static const int newer = 0;
static const int older = 1;
}
消息方向
class MessageDirection {
static int send = 1;
static int receive = 2;
}
消息状态
class MessageState {
static int unknown = 0;
static int sending = 1;
static int sent = 2;
static int fail = 3;
static int uploading = 4;
}
通话状态
class CallStatus {
static const int idle = 0;
static const int incoming = 1;
static const int outgoing = 2;
static const int connecting = 3;
static const int connected = 4;
}
通话媒体类型
class CallMediaType {
static const int voice = 0;
static const int video = 1;
}
通话结束原因
class CallFinishReason {
/// 未知原因
static const int unknown = 0;
/// 当前用户挂断已接通的来电
static const int hangup = 1;
/// 当前用户拒接来电
static const int decline = 2;
/// 当前用户忙线
static const int busy = 3;
/// 当前用户未接听
static const int noResponse = 4;
/// 当前用户取消呼叫
static const int cancel = 5;
/// 对端用户挂断已接通的来电
static const int otherSideHangup = 6;
/// 对端用户拒接来电
static const int otherSideDecline = 7;
/// 对端用户忙线
static const int otherSideBusy = 8;
/// 对端用户未接听
static const int otherSideNoResponse = 9;
/// 对端用户取消呼叫
static const int otherSideCancel = 10;
/// 房间被销毁
static const int roomDestroy = 11;
/// 网络出错
static const int networkError = 12;
/// 当前用户在其它端接听来电
static const int acceptOnOtherClient = 13;
/// 当前用户在其它端挂断来电
static const int hangupOnOtherClient = 14;
}