Go to the documentation of this file.
7 #ifndef _NIM_CPP_SESSION_ONLINE_SERVICE_HELPER_H_
8 #define _NIM_CPP_SESSION_ONLINE_SERVICE_HELPER_H_
16 #include "nim_define_include.h"
17 #include "nim_wrapper_util/nim_json_util.h"
29 , last_message_type_(0) {}
38 auto GetLastMessage() const -> typename std::enable_if<type == 0,
IMMessage>::type {
45 auto GetLastMessage() const -> typename std::enable_if<type == 1,
RecallMsgNotify>::type {
48 return recall_notify_msg;
60 void AddSession(nim::NIMSessionType , std::string );
61 std::list<std::pair<nim::NIMSessionType , std::string >>
delete_list_;
69 static bool ParseSessionInfo(
const std::string& session_json,
SessionInfo& session);
88 #endif //_NIM_CPP_SESSION_ONLINE_SERVICE_HELPER_H_
std::list< SessionInfo > SessionList
Definition: nim_session_online_service_helper.h:51
std::string id_
Definition: nim_session_online_service_helper.h:30
SessionList session_list_
Definition: nim_session_online_service_helper.h:56
std::list< std::pair< nim::NIMSessionType, std::string > > delete_list_
Definition: nim_session_online_service_helper.h:61
NIM_SDK_CPPWRAPPER_DLL_API bool ParseRecallMsgNotify(const std::string json_value, RecallMsgNotify ¬ify)
解析消息撤回通知
NIM_SDK_CPPWRAPPER_DLL_API bool ParseReceiveMessage(const std::string &msg_json, IMMessage &message)
解析消息
消息撤回通知
Definition: nim_msg_helper.h:45
int last_message_type_
Definition: nim_session_online_service_helper.h:35
std::string ext_
Definition: nim_session_online_service_helper.h:32
会话服务 会话数据定义
Definition: nim_session_online_service_helper.h:26
uint64_t update_time_
Definition: nim_session_online_service_helper.h:34
Definition: nim_session_online_service_helper.h:23
NIMSessionType type_
Definition: nim_session_online_service_helper.h:31
Definition: nim_session_online_service_helper.h:59
会话服务 查询会话列表应答数据定义
Definition: nim_session_online_service_helper.h:54
nim::NIMResCode res_code
Definition: nim_session_online_service_helper.h:55
std::string last_message_
Definition: nim_session_online_service_helper.h:33
Definition: nim_talk_helper.h:242
bool has_more_
Definition: nim_session_online_service_helper.h:57