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