NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_talkex_def_collect.h
浏览该文件的文档.
1
6#ifndef NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_COLLECT_H_
7#define NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_COLLECT_H_
8
9#include "public_defines.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
21typedef void (*nim_talkex_collect_add_collect_cb_func)(int code, const char* collect_info, const void* user_data);
22
30typedef void (*nim_talkex_collect_remove_collects_cb_func)(int code, int count, const void* user_data);
31
39typedef void (*nim_talkex_collect_update_collect_ext_cb_func)(int code, const char* collect_info, const void* user_data);
40
49typedef void (*nim_talkex_collect_query_collects_cb_func)(int code, int total_count, const char* collect_info_list, const void* user_data);
50
55static const char* kNIMCollectInfoKeyID = "id";
57static const char* kNIMCollectInfoKeyType = "type";
59static const char* kNIMCollectInfoKeyData = "data";
61static const char* kNIMCollectInfoKeyExt = "ext";
63static const char* kNIMCollectInfoKeyUniqueID = "unique_id";
65static const char* kNIMCollectInfoKeyCreateTime = "create_time";
67static const char* kNIMCollectInfoKeyUpdateTime = "update_time";
68
69 // 收藏内容Json Keys
70
75static const char* kNIMMatchCollectInfoKeyID = "id";
77static const char* kNIMMatchCollectInfoKeyCreateTime = "create_time";
78
79 // 匹配收藏Json Keys
80
85static const char* kNIMQueryCollectKeyFromTime = "from_time";
87static const char* kNIMQueryCollectKeyToTime = "to_time";
89static const char* kNIMQueryCollectKeyExcludeID = "exclude_id";
91static const char* kNIMQueryCollectKeyLimit = "limit";
93static const char* kNIMQueryCollectKeyReverse = "reverse";
95static const char* kNIMQueryCollectKeyType = "type";
96 // 分页查询收藏Json Keys
97
98#ifdef __cplusplus
99};
100#endif // __cplusplus
101#endif // NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_COLLECT_H_
void(* nim_talkex_collect_update_collect_ext_cb_func)(int code, const char *collect_info, const void *user_data)
Definition nim_talkex_def_collect.h:39
static const char * kNIMCollectInfoKeyUpdateTime
uint64_t,更新时间
Definition nim_talkex_def_collect.h:67
static const char * kNIMQueryCollectKeyFromTime
uint64_t,起始时间,默认0
Definition nim_talkex_def_collect.h:85
static const char * kNIMMatchCollectInfoKeyCreateTime
uint64_t,创建时间
Definition nim_talkex_def_collect.h:77
static const char * kNIMCollectInfoKeyUniqueID
string,去重字段,拥有要同去重字段的收藏将会被覆盖
Definition nim_talkex_def_collect.h:63
static const char * kNIMCollectInfoKeyID
uint64_t,ID
Definition nim_talkex_def_collect.h:55
static const char * kNIMMatchCollectInfoKeyID
uint64_t,ID
Definition nim_talkex_def_collect.h:75
static const char * kNIMCollectInfoKeyCreateTime
uint64_t,创建时间
Definition nim_talkex_def_collect.h:65
void(* nim_talkex_collect_add_collect_cb_func)(int code, const char *collect_info, const void *user_data)
Definition nim_talkex_def_collect.h:21
void(* nim_talkex_collect_remove_collects_cb_func)(int code, int count, const void *user_data)
Definition nim_talkex_def_collect.h:30
static const char * kNIMQueryCollectKeyToTime
uint64_t,结束时间,推荐当前时间+1小时
Definition nim_talkex_def_collect.h:87
static const char * kNIMQueryCollectKeyLimit
int,本次查询的上限(最多100条)
Definition nim_talkex_def_collect.h:91
static const char * kNIMCollectInfoKeyExt
string,扩展字段,最大1024
Definition nim_talkex_def_collect.h:61
static const char * kNIMQueryCollectKeyExcludeID
uint64_t,结束查询的最后一条收藏的id(不包含在查询结果中) 缺省 可填0
Definition nim_talkex_def_collect.h:89
static const char * kNIMQueryCollectKeyReverse
bool,反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition nim_talkex_def_collect.h:93
static const char * kNIMCollectInfoKeyType
int,收藏类型,开发者可根据业务自行定义
Definition nim_talkex_def_collect.h:57
void(* nim_talkex_collect_query_collects_cb_func)(int code, int total_count, const char *collect_info_list, const void *user_data)
Definition nim_talkex_def_collect.h:49
static const char * kNIMQueryCollectKeyType
int 收藏类型,缺省(0)表示所有类型
Definition nim_talkex_def_collect.h:95
static const char * kNIMCollectInfoKeyData
string,数据,最大20480
Definition nim_talkex_def_collect.h:59
NIM SDK 及 NIM ChatRoom SDK 公用头文件