NIM CPP SDK  8.3.5
nim_session_online_service_def.h
Go to the documentation of this file.
1 
8 #ifndef NIM_SDK_DLL_EXPORT_HEADERS_SESSION_ONLINE_SERVICE_DEF_H_
9 #define NIM_SDK_DLL_EXPORT_HEADERS_SESSION_ONLINE_SERVICE_DEF_H_
10 
11 #include "public_define/nim_util_include.h"
12 
13 #ifdef __cplusplus
14 extern"C"
15 {
16 #endif
17 
24  typedef void(*nim_session_online_service_query_session_list_cb_func)(int rescode, const char *result, const void *user_data);
25 
33  typedef void(*nim_session_online_service_query_session_cb_func)(int rescode, const char *result, const void *user_data);
34 
41  typedef void(*nim_session_online_service_update_session_cb_func)(int rescode, const void *user_data);
42 
49  typedef void(*nim_session_online_service_delete_session_cb_func)(int rescode, const void *user_data);
50 
57  typedef void(*nim_session_online_service_session_changed_cb_func)(const char *session_info, const void *user_data);
58 
60 static const char *kMINSessionOLSRVInfoType = "info_session_type";
61 static const char *kMINSessionOLSRVInfoID = "info_session_id";
62 static const char *kMINSessionOLSRVInfoUpdateT = "info_update_time";
63 static const char *kMINSessionOLSRVInfoEXT = "info_ext";
64 static const char *kMINSessionOLSRVInfoLastMSG = "info_last_msg";
65 static const char* kMINSessionOLSRVInfoLastMSGType = "info_last_msg_type"; //会话服务 【会话信息】定义参数
67 
69 static const char *kMINSessionOLSRVQueryListRESCode = "query_list_res_code";
70 static const char *kMINSessionOLSRVQueryListMinTimestamp = "query_list_min_timestamp";
71 static const char *kMINSessionOLSRVQueryListMaxTimestamp = "query_list_max_timestamp";
72 static const char *kMINSessionOLSRVQueryListNeedLastMsg = "query_list_need_last_msg";
73 static const char *kMINSessionOLSRVQueryListLimit = "query_list_limit";
74 static const char *kMINSessionOLSRVQueryListHasMore = "query_list_has_more";
75 static const char *kMINSessionOLSRVQueryListInfos = "query_list_sessions"; // 会话服务 【查询会话列表】参数定义
77 
79 static const char *kMINSessionOLSRVQueryType = "query_session_type";
80 static const char *kMINSessionOLSRVQueryID = "query_session_id"; // 会话服务 【查询会话】参数定义
82 
84 static const char *kMINSessionOLSRVUpdateType = "update_session_type";
85 static const char *kMINSessionOLSRVUpdateID = "update_session_id";
86 static const char *kMINSessionOLSRVUpdateEXT = "update_ext"; // 会话服务 【更新会话】参数定义
88 
90 static const char *kMINSessionOLSRVDeleteType = "delete_session_type";
91 static const char *kMINSessionOLSRVDeleteID = "delete_session_id"; // 会话服务 【删除会话】参数定义
93 
94 #ifdef __cplusplus
95 };
96 #endif //__cplusplus
97 #endif //NIM_SDK_DLL_EXPORT_HEADERS_SESSION_ONLINE_SERVICE_DEF_H_
kMINSessionOLSRVQueryListRESCode
static const char * kMINSessionOLSRVQueryListRESCode
Definition: nim_session_online_service_def.h:69
kMINSessionOLSRVInfoType
static const char * kMINSessionOLSRVInfoType
Definition: nim_session_online_service_def.h:60
kMINSessionOLSRVQueryListInfos
static const char * kMINSessionOLSRVQueryListInfos
Definition: nim_session_online_service_def.h:75
nim_session_online_service_delete_session_cb_func
void(* nim_session_online_service_delete_session_cb_func)(int rescode, const void *user_data)
Definition: nim_session_online_service_def.h:49
kMINSessionOLSRVQueryListLimit
static const char * kMINSessionOLSRVQueryListLimit
Definition: nim_session_online_service_def.h:73
kMINSessionOLSRVQueryListMinTimestamp
static const char * kMINSessionOLSRVQueryListMinTimestamp
Definition: nim_session_online_service_def.h:70
kMINSessionOLSRVUpdateEXT
static const char * kMINSessionOLSRVUpdateEXT
Definition: nim_session_online_service_def.h:86
kMINSessionOLSRVUpdateType
static const char * kMINSessionOLSRVUpdateType
Definition: nim_session_online_service_def.h:84
kMINSessionOLSRVQueryListHasMore
static const char * kMINSessionOLSRVQueryListHasMore
Definition: nim_session_online_service_def.h:74
kMINSessionOLSRVQueryID
static const char * kMINSessionOLSRVQueryID
Definition: nim_session_online_service_def.h:80
kMINSessionOLSRVInfoID
static const char * kMINSessionOLSRVInfoID
Definition: nim_session_online_service_def.h:61
kMINSessionOLSRVUpdateID
static const char * kMINSessionOLSRVUpdateID
Definition: nim_session_online_service_def.h:85
nim_session_online_service_query_session_list_cb_func
void(* nim_session_online_service_query_session_list_cb_func)(int rescode, const char *result, const void *user_data)
Definition: nim_session_online_service_def.h:24
kMINSessionOLSRVInfoLastMSG
static const char * kMINSessionOLSRVInfoLastMSG
Definition: nim_session_online_service_def.h:64
kMINSessionOLSRVQueryListMaxTimestamp
static const char * kMINSessionOLSRVQueryListMaxTimestamp
Definition: nim_session_online_service_def.h:71
kMINSessionOLSRVDeleteType
static const char * kMINSessionOLSRVDeleteType
Definition: nim_session_online_service_def.h:90
kMINSessionOLSRVInfoUpdateT
static const char * kMINSessionOLSRVInfoUpdateT
Definition: nim_session_online_service_def.h:62
kMINSessionOLSRVQueryType
static const char * kMINSessionOLSRVQueryType
Definition: nim_session_online_service_def.h:79
nim_session_online_service_session_changed_cb_func
void(* nim_session_online_service_session_changed_cb_func)(const char *session_info, const void *user_data)
Definition: nim_session_online_service_def.h:57
nim_session_online_service_update_session_cb_func
void(* nim_session_online_service_update_session_cb_func)(int rescode, const void *user_data)
Definition: nim_session_online_service_def.h:41
kMINSessionOLSRVDeleteID
static const char * kMINSessionOLSRVDeleteID
Definition: nim_session_online_service_def.h:91
kMINSessionOLSRVQueryListNeedLastMsg
static const char * kMINSessionOLSRVQueryListNeedLastMsg
Definition: nim_session_online_service_def.h:72
kMINSessionOLSRVInfoEXT
static const char * kMINSessionOLSRVInfoEXT
Definition: nim_session_online_service_def.h:63
nim_session_online_service_query_session_cb_func
void(* nim_session_online_service_query_session_cb_func)(int rescode, const char *result, const void *user_data)
Definition: nim_session_online_service_def.h:33
kMINSessionOLSRVInfoLastMSGType
static const char * kMINSessionOLSRVInfoLastMSGType
Definition: nim_session_online_service_def.h:65