7#ifndef _NIM_SDK_CPP_SESSION_H_
8#define _NIM_SDK_CPP_SESSION_H_
40 typedef std::function<void(
nim::NIMResCode,
const std::list<SessionData>& session_data_list,
int unread_count)>
65 typedef std::function<void(
nim::NIMResCode,
const std::list<SessionRoamMsgHasMoreTagInfo>& info_list)>
82 static void RegChangeCb(
const ChangeCallback& cb,
const std::string& json_extension =
"");
91 static void RegBadgeCountCb(
const BadgeCountCallback& cb,
const std::string& json_extension =
"");
100 static void QueryLastFewSessionAsync(
int limit,
const QuerySessionListCallabck& cb,
const std::string& json_extension =
"");
119 static void QueryAllRecentSessionAsnc(
NIMMessageType last_msg_excluded_type,
121 const std::string& json_extension =
"");
132 static void QueryAllRecentSessionAsyncEx(
const std::list<NIMMessageType>& last_msg_excluded_type,
134 const std::string& json_extension =
"");
150 const std::string&
id,
152 const std::string& json_extension =
"");
183 const std::string&
id,
185 const std::string& json_extension =
"");
211 const std::string&
id,
213 const std::string& json_extension =
"");
226 static bool SetMultiUnreadCountZeroAsync(
bool super_team,
227 const std::list<MultiUnreadCountZeroInfo>& unread_zero_info_list,
246 const std::string&
id,
249 const std::string& json_extension =
"");
267 const std::string&
id,
268 const std::string& data,
270 const std::string& json_extension =
"");
296 const std::string&
id,
298 const std::string& json_extension =
"");
343 static void SetToStickTopSession(
const std::string& session_id,
345 const std::string& ext,
361 static void UpdateToStickTopSession(
const std::string& session_id,
363 const std::string& ext,
416 static void UnregSessionCb();
会话列表管理功能;主要包括查询会话列表、删除会话列表等功能
Definition: nim_cpp_session.h:26
ChangeCallback DeleteAllRecentSessionCallabck
删除全部会话回调模板
Definition: nim_cpp_session.h:37
ChangeCallback SetUnreadCountZeroCallback
会话未读消息数清零回调模板
Definition: nim_cpp_session.h:39
std::function< void(const std::string &session_id, nim::NIMSessionType)> CancelStickTopSessionNotifyCallback
取消置顶会话通知回调模板
Definition: nim_cpp_session.h:49
ChangeCallback DeleteRecentSessionCallabck
删除会话回调模板
Definition: nim_cpp_session.h:35
std::function< void(int, const SessionDataList &)> QuerySessionListCallabck
查询会话列表回调模板
Definition: nim_cpp_session.h:33
std::function< void(const StickTopSession &)> UpdateStickTopSessionNotifyCallback
更新置顶会话通知回调模板
Definition: nim_cpp_session.h:51
std::function< void(nim::NIMResCode, const std::list< SessionData > &session_data_list, int unread_count)> SetMultiUnreadCountZeroCallback
多条会话未读消息数清零回调模板
Definition: nim_cpp_session.h:42
std::function< void(nim::NIMResCode, nim::NIMSessionType, const std::string &session_id)> DeleteSessionRoammsgCallback
删除会话是漫游消息未拉取信息回调模板
Definition: nim_cpp_session.h:74
std::function< int32_t(const std::string &)> BadgeCountCallback
app角标未读计数通知回调模板 (仅iOS有效)
Definition: nim_cpp_session.h:29
std::function< void(nim::NIMResCode, const StickTopSession &)> SetToStickTopSessionCallback
置顶会话回调模板
Definition: nim_cpp_session.h:53
std::function< void(nim::NIMResCode, const StickTopSessionList &)> QueryStickTopSessionListCallback
查询置顶会话列表回调模板
Definition: nim_cpp_session.h:60
std::function< void(nim::NIMResCode)> DeleteHasmoreRoammsgCallback
删除会话是漫游消息未拉取信息回调模板
Definition: nim_cpp_session.h:71
std::function< void(nim::NIMResCode, const StickTopSession &)> UpdateStickTopSessionCallback
更新置顶会话回调模板
Definition: nim_cpp_session.h:58
std::function< void(nim::NIMResCode, const SessionRoamMsgHasMoreTagInfo &info)> QueryHasmoreRoammsgCallback
查询会话是漫游消息未拉取信息回调模板
Definition: nim_cpp_session.h:64
std::function< void(nim::NIMResCode, const std::list< SessionRoamMsgHasMoreTagInfo > &info_list)> QueryAllHasmoreRoammsgCallback
查询所有漫游消息未拉取完全的会话回调模板
Definition: nim_cpp_session.h:67
std::function< void(nim::NIMResCode, const SessionData &)> QuerySessionDataCallback
会话信息查询结果回调模板
Definition: nim_cpp_session.h:44
std::function< void(nim::NIMResCode, const SessionData &, int)> ChangeCallback
会话变更通知回调模板
Definition: nim_cpp_session.h:31
std::function< void(nim::NIMResCode)> UpdateHasmoreRoammsgCallback
更新会话是漫游消息未拉取信息回调模板
Definition: nim_cpp_session.h:69
std::function< void(nim::NIMResCode, const std::string &session_id, nim::NIMSessionType)> CancelStickTopSessionCallback
取消置顶会话回调模板
Definition: nim_cpp_session.h:56
std::function< void(const StickTopSession &)> SetToStickTopSessionNotifyCallback
置顶会话通知回调模板
Definition: nim_cpp_session.h:46
NIMResCode
Definition: nim_chatroom_res_code_def.h:15
NIMMessageType
Definition: nim_msglog_def.h:269
NIMSessionType
Definition: nim_session_def.h:16
Definition: nim_session_def.h:59
Definition: nim_talk_helper.h:281
会话数据
Definition: nim_session_helper.h:49
会话列表数据
Definition: nim_session_helper.h:102
Definition: nim_session_helper.h:119
Definition: nim_session_helper.h:135