NIM SDK API  8.5.0
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_defines.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
23 typedef void (*nim_session_online_service_query_session_list_cb_func)(int rescode, const char* result, const void* user_data);
24 
32 typedef void (*nim_session_online_service_query_session_cb_func)(int rescode, const char* result, const void* user_data);
33 
40 typedef void (*nim_session_online_service_update_session_cb_func)(int rescode, const void* user_data);
41 
48 typedef void (*nim_session_online_service_delete_session_cb_func)(int rescode, const void* user_data);
49 
56 typedef void (*nim_session_online_service_session_changed_cb_func)(const char* session_info, const void* user_data);
57 
59 static const char* kMINSessionOLSRVInfoType = "info_session_type";
62 static const char* kMINSessionOLSRVInfoID = "info_session_id";
64 static const char* kMINSessionOLSRVInfoUpdateT = "info_update_time";
66 static const char* kMINSessionOLSRVInfoEXT = "info_ext";
68 static const char* kMINSessionOLSRVInfoLastMSG = "info_last_msg";
70 static const char* kMINSessionOLSRVInfoLastMSGType = "info_last_msg_type"; // 会话服务 【会话信息】定义参数
72 
74 static const char* kMINSessionOLSRVQueryListRESCode = "query_list_res_code";
77 static const char* kMINSessionOLSRVQueryListMinTimestamp = "query_list_min_timestamp";
79 static const char* kMINSessionOLSRVQueryListMaxTimestamp = "query_list_max_timestamp";
81 static const char* kMINSessionOLSRVQueryListNeedLastMsg = "query_list_need_last_msg";
83 static const char* kMINSessionOLSRVQueryListLimit = "query_list_limit";
85 static const char* kMINSessionOLSRVQueryListHasMore = "query_list_has_more";
87 static const char* kMINSessionOLSRVQueryListInfos = "query_list_sessions"; // 会话服务 【查询会话列表】参数定义
89 
91 static const char* kMINSessionOLSRVQueryType = "query_session_type";
94 static const char* kMINSessionOLSRVQueryID = "query_session_id"; // 会话服务 【查询会话】参数定义
96 
98 static const char* kMINSessionOLSRVUpdateType = "update_session_type";
101 static const char* kMINSessionOLSRVUpdateID = "update_session_id";
103 static const char* kMINSessionOLSRVUpdateEXT = "update_ext"; // 会话服务 【更新会话】参数定义
105 
107 static const char* kMINSessionOLSRVDeleteType = "delete_session_type";
110 static const char* kMINSessionOLSRVDeleteID = "delete_session_id"; // 会话服务 【删除会话】参数定义
112 
113 #ifdef __cplusplus
114 };
115 #endif //__cplusplus
116 #endif // NIM_SDK_DLL_EXPORT_HEADERS_SESSION_ONLINE_SERVICE_DEF_H_
kMINSessionOLSRVQueryListRESCode
static const char * kMINSessionOLSRVQueryListRESCode
int 查询结果错误码 200成功
Definition: nim_session_online_service_def.h:75
kMINSessionOLSRVInfoType
static const char * kMINSessionOLSRVInfoType
int 会话类型
Definition: nim_session_online_service_def.h:60
kMINSessionOLSRVQueryListInfos
static const char * kMINSessionOLSRVQueryListInfos
array 查询到的会话列表
Definition: nim_session_online_service_def.h:87
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:48
kMINSessionOLSRVQueryListLimit
static const char * kMINSessionOLSRVQueryListLimit
int,获取的最多记录数量,最大100,缺省100
Definition: nim_session_online_service_def.h:83
kMINSessionOLSRVQueryListMinTimestamp
static const char * kMINSessionOLSRVQueryListMinTimestamp
uint64_t 最小时间戳
Definition: nim_session_online_service_def.h:77
kMINSessionOLSRVUpdateEXT
static const char * kMINSessionOLSRVUpdateEXT
string 扩展字段,可自定义
Definition: nim_session_online_service_def.h:103
kMINSessionOLSRVUpdateType
static const char * kMINSessionOLSRVUpdateType
int 会话类型
Definition: nim_session_online_service_def.h:99
kMINSessionOLSRVQueryListHasMore
static const char * kMINSessionOLSRVQueryListHasMore
bool 结果集是否完整 如果为"false" 可以根据上一请求的 MaxTimestamp 再次发起增时请求
Definition: nim_session_online_service_def.h:85
kMINSessionOLSRVQueryID
static const char * kMINSessionOLSRVQueryID
string 会话ID
Definition: nim_session_online_service_def.h:94
kMINSessionOLSRVInfoID
static const char * kMINSessionOLSRVInfoID
string 会话ID
Definition: nim_session_online_service_def.h:62
kMINSessionOLSRVUpdateID
static const char * kMINSessionOLSRVUpdateID
string 会话ID
Definition: nim_session_online_service_def.h:101
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:23
public_defines.h
NIM SDK 及 NIM ChatRoom SDK 公用头文件
kMINSessionOLSRVInfoLastMSG
static const char * kMINSessionOLSRVInfoLastMSG
string 最后一条消息的相关数据 json格式,
Definition: nim_session_online_service_def.h:68
kMINSessionOLSRVQueryListMaxTimestamp
static const char * kMINSessionOLSRVQueryListMaxTimestamp
uint64_t 最大时间戳,翻页时使用
Definition: nim_session_online_service_def.h:79
kMINSessionOLSRVDeleteType
static const char * kMINSessionOLSRVDeleteType
int 会话类型
Definition: nim_session_online_service_def.h:108
kMINSessionOLSRVInfoUpdateT
static const char * kMINSessionOLSRVInfoUpdateT
uint64_t 会话最后更新时间
Definition: nim_session_online_service_def.h:64
kMINSessionOLSRVQueryType
static const char * kMINSessionOLSRVQueryType
int 会话类型
Definition: nim_session_online_service_def.h:92
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:56
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:40
kMINSessionOLSRVDeleteID
static const char * kMINSessionOLSRVDeleteID
string 会话ID
Definition: nim_session_online_service_def.h:110
kMINSessionOLSRVQueryListNeedLastMsg
static const char * kMINSessionOLSRVQueryListNeedLastMsg
bool 结果中是否需要返回最近一条消息,缺省true
Definition: nim_session_online_service_def.h:81
kMINSessionOLSRVInfoEXT
static const char * kMINSessionOLSRVInfoEXT
string 扩展字段,可自定义
Definition: nim_session_online_service_def.h:66
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:32
kMINSessionOLSRVInfoLastMSGType
static const char * kMINSessionOLSRVInfoLastMSGType
int 最后一条消息的类型 0表示普通消息,1表示消息撤回通知
Definition: nim_session_online_service_def.h:70