NIM SDK API  9.0.0
Classes | Typedefs | Functions | Variables
nim_chatroom Namespace Reference

聊天室 More...

Classes

class  ChatRoom
 聊天室 More...
 
struct  ChatRoomAnoymityEnterInfo
 
struct  ChatRoomBatchMembers
 聊天室批量更新成员 More...
 
struct  ChatRoomEnterInfo
 聊天室登录信息 More...
 
struct  ChatRoomGetMembersByTagParameters
 根据 tag 获取聊天室成员参数 More...
 
struct  ChatRoomGetMembersParameters
 获取聊天室成员参数 More...
 
struct  ChatRoomGetMsgHistoryParameters
 获取聊天室消息历史参数 More...
 
struct  ChatRoomIndependentEnterInfo
 
struct  ChatRoomInfo
 聊天室信息 More...
 
struct  ChatRoomMemberInfo
 聊天室成员信息 More...
 
struct  ChatRoomMessage
 聊天室消息 More...
 
struct  ChatRoomMessageSetting
 聊天室消息属性设置 More...
 
struct  ChatRoomNotification
 聊天室通知 More...
 
struct  ChatRoomQueueBatchChangedNotification
 通知麦序队列中有批量变更,发生在元素提交者离开聊天室或者从聊天室异常掉线时 More...
 
struct  ChatRoomQueueChangedNotification
 聊天室队列通知内容 More...
 
struct  ChatRoomQueueElement
 聊天室麦序队列元素 More...
 
struct  ChatRoomQueueOfferOption
 聊天室麦序添加、更新选项 More...
 
struct  ChatRoomSetMemberAttributeParameters
 设置聊天室成员身份标识参数 More...
 
struct  ChatRoomUpdateTagsInfo
 聊天室更新标签 More...
 
struct  NIMChatRoomExitReasonInfo
 聊天室退出时的信息 More...
 
struct  RobotInfo
 机器人信息 More...
 

Typedefs

typedef std::list< ChatRoomQueueElementChatRoomQueue
 聊天室麦序队列
 
typedef std::list< RobotInfoRobotInfos
 
typedef ChatRoomQueueElement ChatRoomMember
 

Functions

NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool operator== (const NIMChatRoomExitReasonInfo &info, NIMChatRoomExitReason code)
 
NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool ParseChatRoomEnterCallbackResultInfo (const std::string &result, ChatRoomInfo &room_info, ChatRoomMemberInfo &my_info)
 解析聊天室登录结果 More...
 
NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool ParseChatRoomMemberInfos (const std::string &infos_json_str, std::list< ChatRoomMemberInfo > &infos)
 解析聊天室成员信息 More...
 
NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool ParseChatRoomMsgs (const std::string &msgs_json_str, std::list< ChatRoomMessage > &msgs)
 解析聊天室成员信息 More...
 
NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool ParseRobotInfosStringToRobotInfos (const std::string &infos_json, RobotInfos &infos)
 解析机器人信息 More...
 
NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool ParseRobotInfoStringToRobotInfo (const std::string &info_json, RobotInfo &info)
 解析机器人信息 More...
 
NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool ParseBatchInfosStringToNotMembers (const std::string &infos_json, std::list< std::string > &lst_members)
 解析成员列表 More...
 

Variables

nim::SDKInstance * nim_chatroom_sdk_instance
 

Detailed Description

聊天室

Function Documentation

◆ operator==()

NIM_CHATROOM_SDK_CPPWRAPPER_DLL_API bool nim_chatroom::operator== ( const NIMChatRoomExitReasonInfo info,
NIMChatRoomExitReason  code 
)

重载符号=

◆ ParseBatchInfosStringToNotMembers()

bool nim_chatroom::ParseBatchInfosStringToNotMembers ( const std::string &  infos_json,
std::list< std::string > &  lst_members 
)

解析成员列表

Parameters
[in]info_json成员列表信息 json格式字符串
[out]lst_members成员列表
Returns
bool 解析成功或失败

◆ ParseChatRoomEnterCallbackResultInfo()

bool nim_chatroom::ParseChatRoomEnterCallbackResultInfo ( const std::string &  result,
ChatRoomInfo room_info,
ChatRoomMemberInfo my_info 
)

解析聊天室登录结果

Parameters
[in]result
[out]room_info
[out]my_info
Returns
bool 解析成功 或失败

◆ ParseChatRoomMemberInfos()

bool nim_chatroom::ParseChatRoomMemberInfos ( const std::string &  infos_json_str,
std::list< ChatRoomMemberInfo > &  infos 
)

解析聊天室成员信息

Parameters
[in]infos_json_str
[out]infos
Returns
bool 解析成功 或失败

◆ ParseChatRoomMsgs()

bool nim_chatroom::ParseChatRoomMsgs ( const std::string &  msgs_json_str,
std::list< ChatRoomMessage > &  msgs 
)

解析聊天室成员信息

Parameters
[in]msgs_json_str
[out]msgs
Returns
bool 解析成功 或失败

◆ ParseRobotInfosStringToRobotInfos()

bool nim_chatroom::ParseRobotInfosStringToRobotInfos ( const std::string &  infos_json,
RobotInfos &  infos 
)

解析机器人信息

Parameters
[in]infos_json机器人信息(Json Value数据字符串)
[out]infos机器人信息
Returns
bool 解析成功或失败

◆ ParseRobotInfoStringToRobotInfo()

bool nim_chatroom::ParseRobotInfoStringToRobotInfo ( const std::string &  info_json,
RobotInfo info 
)

解析机器人信息

Parameters
[in]info_json机器人信息
[out]info机器人信息
Returns
bool 解析成功或失败