Connection Status
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;
}
Conversation Type
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;
}
Retrieval Direction
class PullDirection {
static const int newer = 0;
static const int older = 1;
}
Message Direction
class MessageDirection {
static int send = 1;
static int receive = 2;
}
Message State
class MessageState {
static int unknown = 0;
static int sending = 1;
static int sent = 2;
static int fail = 3;
static int uploading = 4;
}
Call Status
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;
}
Call Media Type
class CallMediaType {
static const int voice = 0;
static const int video = 1;
}
Call End Reason
class CallFinishReason {
/// unknown reason
static const int unknown = 0;
/// current user hung up an active call
static const int hangup = 1;
/// current user rejected the incoming call
static const int decline = 2;
/// current user was busy
static const int busy = 3;
/// current user did not answer
static const int noResponse = 4;
/// current user canceled the call
static const int cancel = 5;
/// remote user hung up an active call
static const int otherSideHangup = 6;
/// remote user rejected the incoming call
static const int otherSideDecline = 7;
/// remote user was busy
static const int otherSideBusy = 8;
/// remote user did not answer
static const int otherSideNoResponse = 9;
/// remote user canceled the call
static const int otherSideCancel = 10;
/// room was destroyed
static const int roomDestroy = 11;
/// network error
static const int networkError = 12;
/// current user answered the call on another device
static const int acceptOnOtherClient = 13;
/// current user hung up the call on another device
static const int hangupOnOtherClient = 14;
}