NIM PC Cross Platform SDK
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
16extern "C" {
17#endif
26NIM_SDK_DLL_API void nim_session_reg_change_cb(const char* json_extension, nim_session_change_cb_func cb, const void* user_data);
27
36NIM_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
49NIM_SDK_DLL_API void nim_session_query_last_few_session_async(int limit,
50 const char* json_extension,
52 const void* user_data);
53
63NIM_SDK_DLL_API void nim_session_query_all_recent_session_async(const char* json_extension,
65 const void* user_data);
66
78NIM_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
97 const char* last_msg_excluded_type_list,
98 const void* user_data);
99
116 const char* id,
117 const char* json_extension,
119 const void* user_data);
120
137 const char* id,
138 bool delete_roaming,
140 const void* user_data);
141
158 const char* id,
159 const char* json_extension,
161 const void* user_data);
162
172NIM_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);
173
190 const char* id,
191 const char* json_extension,
193 const void* user_data);
194
209NIM_SDK_DLL_API void nim_session_set_multi_unread_count_zero_async(bool super_team,
210 const char* unread_count_zero_info_list,
212 const void* user_data);
213
231NIM_SDK_DLL_API void nim_session_set_top(enum NIMSessionType to_type,
232 const char* id,
233 bool top,
234 const char* json_extension,
236 const void* user_data);
237
255NIM_SDK_DLL_API void nim_session_set_extend_data(enum NIMSessionType to_type,
256 const char* id,
257 const char* data,
258 const char* json_extension,
260 const void* user_data);
261
271NIM_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);
272
289 const char* id,
290 const char* json_extension,
292 const void* user_data);
293
303
319NIM_SDK_DLL_API void nim_session_set_to_stick_top(const char* session_id,
320 enum NIMSessionType to_type,
321 const char* ext,
323 const void* user_data);
324
338NIM_SDK_DLL_API void nim_session_cancel_stick_top(const char* session_id,
339 enum NIMSessionType to_type,
341 const void* user_data);
342
358NIM_SDK_DLL_API void nim_session_update_stick_top(const char* session_id,
359 enum NIMSessionType to_type,
360 const char* ext,
362 const void* user_data);
363
371
379
387
397NIM_SDK_DLL_API void nim_session_query_session_hasmore_roammsg(const SessionMainTagInfo* session_main_tag_info,
399 const void* user_data);
400
408
418NIM_SDK_DLL_API void nim_session_update_session_hasmore_roammsg(const char* json_msg,
420 const void* user_data);
421
431NIM_SDK_DLL_API void nim_session_delete_session_hasmore_roammsg(const SessionMainTagInfo* session_main_tag_info,
433 const void* user_data);
434
435#ifdef __cplusplus
436};
437#endif //__cplusplus
438#endif // NIM_SDK_DLL_API_NIM_SESSION_H_
消息历史 接口相关的常量函数等定义头文件
NIMMessageType
Definition: nim_msglog_def.h:269
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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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)
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_SDK_DLL_API void nim_session_reg_change_cb(const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
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_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_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_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_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_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_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)
最近会话列表 接口相关的常量函数等定义头文件
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:76
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:153
void(* nim_session_query_stick_top_session_list_cb_func)(int rescode, const char *result, const void *user_data)
Definition: nim_session_def.h:134
void(* nim_session_query_sessiondata_by_id_cb_func)(int rescode, const char *result, const void *user_data)
Definition: nim_session_def.h:117
void(* nim_session_query_session_hasmore_roammsg_cb_func)(int rescode, const SessionRoamMsgHasMoreTagInfo *tag_info, const void *user_data)
Definition: nim_session_def.h:286
void(* nim_session_update_session_hasmore_roammsg_cb_func)(int rescode, const void *user_data)
Definition: nim_session_def.h:310
void(* nim_session_update_stick_top_cb_func)(int rescode, const char *stick_session, const void *user_data)
Definition: nim_session_def.h:162
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:299
void(* nim_session_update_stick_top_notify_cb_func)(const char *stick_session, const void *user_data)
Definition: nim_session_def.h:187
void(* nim_session_delete_session_hasmore_roammsg_cb_func)(int rescode, const void *user_data)
Definition: nim_session_def.h:318
int(* nim_session_badge_count_cb_func)(const char *json_extension, const void *user_data)
Definition: nim_session_def.h:125
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:86
NIMSessionType
Definition: nim_session_def.h:16
void(* nim_session_set_to_stick_top_cb_func)(int rescode, const char *stick_session, const void *user_data)
Definition: nim_session_def.h:143
void(* nim_session_set_to_stick_top_notify_cb_func)(const char *stick_session, const void *user_data)
Definition: nim_session_def.h:170
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:96
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:179
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:108
NIM SDK 及 NIM ChatRoom SDK 公用头文件
Definition: nim_session_def.h:54