NIM SDK API  8.5.0
nim_session.h
Go to the documentation of this file.
1 
8 #ifndef NIM_SDK_DLL_API_NIM_SESSION_H_
9 #define NIM_SDK_DLL_API_NIM_SESSION_H_
10 
11 #include "nim_msglog_def.h"
12 #include "nim_session_def.h"
13 #include "public_defines.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
26 NIM_SDK_DLL_API void nim_session_reg_change_cb(const char* json_extension, nim_session_change_cb_func cb, const void* user_data);
27 
36 NIM_SDK_DLL_API void nim_session_reg_badge_count_cb(const char* json_extension, nim_session_badge_count_cb_func cb, const void* user_data);
37 
49 NIM_SDK_DLL_API void nim_session_query_last_few_session_async(int limit,
50  const char* json_extension,
52  const void* user_data);
53 
63 NIM_SDK_DLL_API void nim_session_query_all_recent_session_async(const char* json_extension,
65  const void* user_data);
66 
78 NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded_type_async(const char* json_extension,
80  enum NIMMessageType last_msg_excluded_type,
81  const void* user_data);
82 
94 NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded_type_async_ex(const char* json_extension,
96  const char* last_msg_excluded_type_list,
97  const void* user_data);
98 
114 NIM_SDK_DLL_API void nim_session_delete_recent_session_async(enum NIMSessionType to_type,
115  const char* id,
116  const char* json_extension,
118  const void* user_data);
119 
135 NIM_SDK_DLL_API void nim_session_delete_recent_session_async_ex(enum NIMSessionType to_type,
136  const char* id,
137  bool delete_roaming,
139  const void* user_data);
140 
156 NIM_SDK_DLL_API void nim_session_delete_session_roaming_async(enum NIMSessionType to_type,
157  const char* id,
158  const char* json_extension,
160  const void* user_data);
161 
171 NIM_SDK_DLL_API void nim_session_delete_all_recent_session_async(const char* json_extension, nim_session_change_cb_func cb, const void* user_data);
172 
188 NIM_SDK_DLL_API void nim_session_set_unread_count_zero_async(enum NIMSessionType to_type,
189  const char* id,
190  const char* json_extension,
192  const void* user_data);
193 
208 NIM_SDK_DLL_API void nim_session_set_multi_unread_count_zero_async(bool super_team,
209  const char* unread_count_zero_info_list,
211  const void* user_data);
212 
230 NIM_SDK_DLL_API void nim_session_set_top(enum NIMSessionType to_type,
231  const char* id,
232  bool top,
233  const char* json_extension,
235  const void* user_data);
236 
254 NIM_SDK_DLL_API void nim_session_set_extend_data(enum NIMSessionType to_type,
255  const char* id,
256  const char* data,
257  const char* json_extension,
259  const void* user_data);
260 
270 NIM_SDK_DLL_API void nim_session_reset_all_unread_count_async(const char* json_extension, nim_session_change_cb_func cb, const void* user_data);
271 
287 NIM_SDK_DLL_API void nim_session_query_sessiondata_by_id_async(enum NIMSessionType to_type,
288  const char* id,
289  const char* json_extension,
291  const void* user_data);
292 
302 
318 NIM_SDK_DLL_API void nim_session_set_to_stick_top(const char* session_id,
319  enum NIMSessionType to_type,
320  const char* ext,
322  const void* user_data);
323 
337 NIM_SDK_DLL_API void nim_session_cancel_stick_top(const char* session_id,
338  enum NIMSessionType to_type,
340  const void* user_data);
341 
357 NIM_SDK_DLL_API void nim_session_update_stick_top(const char* session_id,
358  enum NIMSessionType to_type,
359  const char* ext,
361  const void* user_data);
362 
370 
378 
386 
396 NIM_SDK_DLL_API void nim_session_query_session_hasmore_roammsg(const SessionMainTagInfo* session_main_tag_info,
398  const void* user_data);
399 
407 
417 NIM_SDK_DLL_API void nim_session_update_session_hasmore_roammsg(const char* json_msg,
419  const void* user_data);
420 
430 NIM_SDK_DLL_API void nim_session_delete_session_hasmore_roammsg(const SessionMainTagInfo* session_main_tag_info,
432  const void* user_data);
433 
434 #ifdef __cplusplus
435 };
436 #endif //__cplusplus
437 #endif // NIM_SDK_DLL_API_NIM_SESSION_H_
nim_session_query_stick_top_session_list_cb_func
void(* nim_session_query_stick_top_session_list_cb_func)(int rescode, const char *result, const void *user_data)
Definition: nim_session_def.h:121
nim_session_reg_update_stick_top_notify_cb
NIM_SDK_DLL_API void nim_session_reg_update_stick_top_notify_cb(nim_session_update_stick_top_notify_cb_func cb, const void *user_data)
nim_session_update_stick_top
NIM_SDK_DLL_API void nim_session_update_stick_top(const char *session_id, enum NIMSessionType to_type, const char *ext, nim_session_update_stick_top_cb_func cb, const void *user_data)
nim_session_query_last_few_session_async
NIM_SDK_DLL_API void nim_session_query_last_few_session_async(int limit, const char *json_extension, nim_session_query_recent_session_cb_func cb, const void *user_data)
nim_session_reg_change_cb
NIM_SDK_DLL_API void nim_session_reg_change_cb(const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
SessionMainTagInfo
Definition: nim_session_def.h:39
nim_session_cancel_stick_top
NIM_SDK_DLL_API void nim_session_cancel_stick_top(const char *session_id, enum NIMSessionType to_type, nim_session_cancel_stick_top_cb_func cb, const void *user_data)
nim_session_reg_set_to_stick_top_notify_cb
NIM_SDK_DLL_API void nim_session_reg_set_to_stick_top_notify_cb(nim_session_set_to_stick_top_notify_cb_func cb, const void *user_data)
nim_session_multi_change_cb_func
void(* nim_session_multi_change_cb_func)(int rescode, const char *result, int total_unread_counts, const void *user_data)
Definition: nim_session_def.h:71
nim_session_query_sessiondata_by_id_cb_func
void(* nim_session_query_sessiondata_by_id_cb_func)(int rescode, const char *result, const void *user_data)
Definition: nim_session_def.h:104
NIMMessageType
NIMMessageType
Definition: nim_msglog_def.h:257
nim_session_set_to_stick_top_cb_func
void(* nim_session_set_to_stick_top_cb_func)(int rescode, const char *stick_session, const void *user_data)
Definition: nim_session_def.h:130
nim_session_query_all_recent_session_with_last_msg_excluded_type_async_ex
NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded_type_async_ex(const char *json_extension, nim_session_query_recent_session_cb_func cb, const char *last_msg_excluded_type_list, const void *user_data)
nim_session_delete_session_hasmore_roammsg_cb_func
void(* nim_session_delete_session_hasmore_roammsg_cb_func)(int rescode, const void *user_data)
Definition: nim_session_def.h:305
nim_session_set_to_stick_top_notify_cb_func
void(* nim_session_set_to_stick_top_notify_cb_func)(const char *stick_session, const void *user_data)
Definition: nim_session_def.h:157
nim_session_change_cb_func
void(* nim_session_change_cb_func)(int rescode, const char *result, int total_unread_counts, const char *json_extension, const void *user_data)
Definition: nim_session_def.h:61
nim_session_set_multi_unread_count_zero_async
NIM_SDK_DLL_API void nim_session_set_multi_unread_count_zero_async(bool super_team, const char *unread_count_zero_info_list, nim_session_multi_change_cb_func cb, const void *user_data)
nim_session_query_all_recent_session_async
NIM_SDK_DLL_API void nim_session_query_all_recent_session_async(const char *json_extension, nim_session_query_recent_session_cb_func cb, const void *user_data)
nim_session_badge_count_cb_func
int(* nim_session_badge_count_cb_func)(const char *json_extension, const void *user_data)
Definition: nim_session_def.h:112
nim_session_def.h
最近会话列表 接口相关的常量函数等定义头文件
nim_session_reg_cancell_stick_top_notify_cb
NIM_SDK_DLL_API void nim_session_reg_cancell_stick_top_notify_cb(nim_session_cancel_stick_top_notify_cb_func cb, const void *user_data)
nim_session_query_stick_top_session_list
NIM_SDK_DLL_API void nim_session_query_stick_top_session_list(nim_session_query_stick_top_session_list_cb_func cb, const void *user_data)
nim_session_cancel_stick_top_cb_func
void(* nim_session_cancel_stick_top_cb_func)(int rescode, const char *session_id, enum NIMSessionType to_type, const void *user_data)
Definition: nim_session_def.h:140
nim_session_query_sessiondata_by_id_async
NIM_SDK_DLL_API void nim_session_query_sessiondata_by_id_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_query_sessiondata_by_id_cb_func cb, const void *user_data)
nim_session_cancel_stick_top_notify_cb_func
void(* nim_session_cancel_stick_top_notify_cb_func)(const char *session_id, enum NIMSessionType to_type, const void *user_data)
Definition: nim_session_def.h:166
nim_session_delete_session_hasmore_roammsg
NIM_SDK_DLL_API void nim_session_delete_session_hasmore_roammsg(const SessionMainTagInfo *session_main_tag_info, nim_session_delete_session_hasmore_roammsg_cb_func cb, const void *user_data)
nim_session_reset_all_unread_count_async
NIM_SDK_DLL_API void nim_session_reset_all_unread_count_async(const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
nim_session_set_unread_count_zero_async
NIM_SDK_DLL_API void nim_session_set_unread_count_zero_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
nim_session_update_session_hasmore_roammsg_cb_func
void(* nim_session_update_session_hasmore_roammsg_cb_func)(int rescode, const void *user_data)
Definition: nim_session_def.h:297
nim_session_delete_all_recent_session_async
NIM_SDK_DLL_API void nim_session_delete_all_recent_session_async(const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
nim_session_delete_session_roaming_cb_func
void(* nim_session_delete_session_roaming_cb_func)(int rescode, const char *to_type, const char *id, const void *user_data)
Definition: nim_session_def.h:81
nim_session_query_all_session_hasmore_roammsg
NIM_SDK_DLL_API void nim_session_query_all_session_hasmore_roammsg(nim_session_query_all_session_hasmore_roammsg_cb_func cb, const void *user_data)
nim_session_set_to_stick_top
NIM_SDK_DLL_API void nim_session_set_to_stick_top(const char *session_id, enum NIMSessionType to_type, const char *ext, nim_session_set_to_stick_top_cb_func cb, const void *user_data)
nim_session_reg_badge_count_cb
NIM_SDK_DLL_API void nim_session_reg_badge_count_cb(const char *json_extension, nim_session_badge_count_cb_func cb, const void *user_data)
nim_session_query_all_recent_session_with_last_msg_excluded_type_async
NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded_type_async(const char *json_extension, nim_session_query_recent_session_cb_func cb, enum NIMMessageType last_msg_excluded_type, const void *user_data)
nim_session_query_recent_session_cb_func
void(* nim_session_query_recent_session_cb_func)(int total_unread_count, const char *result, const char *json_extension, const void *user_data)
Definition: nim_session_def.h:92
public_defines.h
NIM SDK 及 NIM ChatRoom SDK 公用头文件
nim_session_update_session_hasmore_roammsg
NIM_SDK_DLL_API void nim_session_update_session_hasmore_roammsg(const char *json_msg, nim_session_update_session_hasmore_roammsg_cb_func cb, const void *user_data)
nim_session_query_session_hasmore_roammsg_cb_func
void(* nim_session_query_session_hasmore_roammsg_cb_func)(int rescode, const SessionRoamMsgHasMoreTagInfo *tag_info, const void *user_data)
Definition: nim_session_def.h:273
nim_session_delete_session_roaming_async
NIM_SDK_DLL_API void nim_session_delete_session_roaming_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_delete_session_roaming_cb_func cb, const void *user_data)
nim_session_query_session_hasmore_roammsg
NIM_SDK_DLL_API void nim_session_query_session_hasmore_roammsg(const SessionMainTagInfo *session_main_tag_info, nim_session_query_session_hasmore_roammsg_cb_func cb, const void *user_data)
nim_session_update_stick_top_cb_func
void(* nim_session_update_stick_top_cb_func)(int rescode, const char *stick_session, const void *user_data)
Definition: nim_session_def.h:149
NIMSessionType
NIMSessionType
Definition: nim_session_def.h:16
nim_session_set_top
NIM_SDK_DLL_API void nim_session_set_top(enum NIMSessionType to_type, const char *id, bool top, const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
nim_session_delete_recent_session_async
NIM_SDK_DLL_API void nim_session_delete_recent_session_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
nim_session_update_stick_top_notify_cb_func
void(* nim_session_update_stick_top_notify_cb_func)(const char *stick_session, const void *user_data)
Definition: nim_session_def.h:174
nim_session_query_all_session_hasmore_roammsg_cb_func
void(* nim_session_query_all_session_hasmore_roammsg_cb_func)(int rescode, const SessionRoamMsgHasMoreTagInfo *tag_info_list, int size, const void *user_data)
Definition: nim_session_def.h:286
nim_session_delete_recent_session_async_ex
NIM_SDK_DLL_API void nim_session_delete_recent_session_async_ex(enum NIMSessionType to_type, const char *id, bool delete_roaming, nim_session_change_cb_func cb, const void *user_data)
nim_msglog_def.h
消息历史 接口相关的常量函数等定义头文件
nim_session_set_extend_data
NIM_SDK_DLL_API void nim_session_set_extend_data(enum NIMSessionType to_type, const char *id, const char *data, const char *json_extension, nim_session_change_cb_func cb, const void *user_data)