40 typedef std::function<void(
NIMResCode,
const std::list<SessionData>& session_data_list,
int unread_count)>
47 typedef std::function<void(
const std::string& session_id, nim::NIMSessionType)>
54 typedef std::function<void(
NIMResCode,
const std::string& session_id, nim::NIMSessionType)>
65 typedef std::function<void(
NIMResCode,
const std::list<SessionRoamMsgHasMoreTagInfo>& info_list)>
72 typedef std::function<void(
NIMResCode, nim::NIMSessionType,
const std::string& session_id)>
88 static void RegChangeCb(
const ChangeCallback& cb,
const std::string& json_extension =
"");
99 static void RegBadgeCountCb(
const BadgeCountCallback& cb,
const std::string& json_extension =
"");
108 static void QueryLastFewSessionAsync(
int limit,
const QuerySessionListCallabck& cb,
const std::string& json_extension =
"");
117 static void QueryAllRecentSessionAsync(
const QuerySessionListCallabck& cb,
const std::string& json_extension =
"");
130 static void QueryAllRecentSessionAsnc(
NIMMessageType last_msg_excluded_type,
131 const QuerySessionListCallabck& cb,
132 const std::string& json_extension =
"");
144 static void QueryAllRecentSessionAsyncEx(
const std::list<NIMMessageType>& last_msg_excluded_type,
145 const QuerySessionListCallabck& cb,
146 const std::string& json_extension =
"");
162 static bool DeleteRecentSession(nim::NIMSessionType to_type,
163 const std::string&
id,
165 const std::string& json_extension =
"");
181 static bool DeleteRecentSessionEx(nim::NIMSessionType to_type,
const std::string&
id,
const DeleteRecentSessionCallabck& cb,
bool delete_roaming);
197 static bool DeleteSessionRoamingMessage(nim::NIMSessionType to_type,
198 const std::string&
id,
199 const DeleteSessionRoammsgCallback& cb,
200 const std::string& json_extension =
"");
227 static bool SetUnreadCountZeroAsync(nim::NIMSessionType to_type,
228 const std::string&
id,
230 const std::string& json_extension =
"");
247 static bool SetMultiUnreadCountZeroAsync(
bool super_team,
248 const std::list<MultiUnreadCountZeroInfo>& unread_zero_info_list,
249 const SetMultiUnreadCountZeroCallback& cb);
268 const std::string&
id,
270 const ChangeCallback& cb,
271 const std::string& json_extension =
"");
290 const std::string&
id,
291 const std::string& data,
292 const ChangeCallback& cb,
293 const std::string& json_extension =
"");
321 const std::string&
id,
322 const QuerySessionDataCallback& cb,
323 const std::string& json_extension =
"");
330 static void RegSetToStickTopSessionNotifyCB(
const SetToStickTopSessionNotifyCallback& cb);
337 static void RegCancelStickTopSessionNotifyCB(
const CancelStickTopSessionNotifyCallback& cb);
344 static void RegUpdateStickTopSessionNotifyCB(
const UpdateStickTopSessionNotifyCallback& cb);
354 static void QueryStickTopSessionList(
const QueryStickTopSessionListCallback& cb);
370 static void SetToStickTopSession(
const std::string& session_id,
371 nim::NIMSessionType to_type,
372 const std::string& ext,
373 const SetToStickTopSessionCallback& cb);
389 static void UpdateToStickTopSession(
const std::string& session_id,
390 nim::NIMSessionType to_type,
391 const std::string& ext,
392 const UpdateStickTopSessionCallback& cb);
404 static void CancelToStickTopSession(
const std::string& session_id, nim::NIMSessionType to_type,
const CancelStickTopSessionCallback& cb);
418 static void QueryHasmoreRoammsg(
const std::string& session_id, nim::NIMSessionType to_type,
const QueryHasmoreRoammsgCallback& cb);
425 static void QueryAllHasmoreRoammsg(
const QueryAllHasmoreRoammsgCallback& cb);
448 static void UnregSessionCb();