API Overview
Message Callbacks
Status Codes
Connection Status
typedef NS_ENUM(NSUInteger, JConnectionStatus) {
//disconnected
JConnectionStatusIdle = 0,
//connected
JConnectionStatusConnected = 1,
//disconnected (the user disconnected explicitly)
JConnectionStatusDisconnected = 2,
//connecting
JConnectionStatusConnecting = 3,
//connection failed; use JErrorCode to determine how to handle the failure
JConnectionStatusFailure
};
Conversation Type
/*!
conversation type
*/
typedef NS_ENUM(NSUInteger, JConversationType) {
JConversationTypeUnknown = 0,
/*!
private chat
*/
JConversationTypePrivate = 1,
/*!
group
*/
JConversationTypeGroup = 2,
/*!
chatroom
*/
JConversationTypeChatroom = 3,
/*!
system conversation
*/
JConversationTypeSystem = 4,
};
Retrieval Direction
typedef NS_ENUM(NSUInteger, JPullDirection) {
JPullDirectionNewer = 0,
JPullDirectionOlder = 1,
};