NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_talkex_def_quick_comment.h
浏览该文件的文档.
1
6#ifndef NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_QUICK_COMMENT_H_
7#define NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_QUICK_COMMENT_H_
8
9#include "public_defines.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
21typedef void (*nim_talkex_quick_comment_add_quick_comment_cb_func)(int code, const char* quick_comment_info, const void* user_data);
22
30typedef void (*nim_talkex_quick_comment_remove_quick_comment_cb_func)(int code, const char* id, const void* user_data);
31
39typedef void (*nim_talkex_quick_comment_query_quick_comment_cb_func)(int code, const char* response, const void* user_data);
40
55 int type,
56 const char* msg_client_id,
57 const char* info,
58 const void* user_data);
59
75 int type,
76 const char* msg_client_id,
77 const char* id,
78 const char* ext,
79 const void* user_data);
80
86static const char* kNIMQuickCommentInfoKeyID = "id";
88static const char* kNIMQuickCommentInfoKeyFromAccID = "from_account";
90static const char* kNIMQuickCommentInfoKeyReplyType = "reply_type";
92static const char* kNIMQuickCommentInfoKeyClinetID = "client_id";
94static const char* kNIMQuickCommentInfoKeyServerID = "server_id";
96static const char* kNIMQuickCommentInfoKeyTime = "time";
98static const char* kNIMQuickCommentInfoKeyExt = "ext";
100static const char* kNIMQuickCommentInfoKeyNeedPush = "need_push";
102static const char* kNIMQuickCommentInfoKeyNeedBadge = "need_badge";
104static const char* kNIMQuickCommentInfoKeyPushTitle = "push_title";
106static const char* kNIMQuickCommentInfoKeyPushContent = "push_content";
108static const char* kNIMQuickCommentInfoKeyPushPayload = "push_payload";
109 // 快捷回复Json Keys
111
116static const char* kNIMQuickCommentRemoveParamKeyID = "id";
118static const char* kNIMQuickCommentRemoveParamKeyReplyType = "reply_type";
120static const char* kNIMQuickCommentRemoveParamKeyExt = "ext"; // 删除快捷回复参数Json Keys
122
127static const char* kNIMQuickCommentQueryRSPKeyMsgClientID = "client_id";
129static const char* kNIMQuickCommentQueryRSPKeyInfoList = "info_list"; // 查询快捷回复应答参数Json Keys
131
132#ifdef __cplusplus
133};
134#endif // __cplusplus
135#endif // NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_QUICK_COMMENT_H_
static const char * kNIMQuickCommentRemoveParamKeyExt
string 取消操作的扩展字段
Definition: nim_talkex_def_quick_comment.h:120
static const char * kNIMQuickCommentInfoKeyFromAccID
string回复者的 accid
Definition: nim_talkex_def_quick_comment.h:88
static const char * kNIMQuickCommentInfoKeyExt
string 自定义扩展字段,最大32字符
Definition: nim_talkex_def_quick_comment.h:98
static const char * kNIMQuickCommentInfoKeyID
string 服务端没有这个字段,本地为了好处理记录加上的(message serverid + from_accid + type)
Definition: nim_talkex_def_quick_comment.h:86
static const char * kNIMQuickCommentInfoKeyReplyType
int64_t 开发者自定义的回复类型 不可使用0
Definition: nim_talkex_def_quick_comment.h:90
void(* nim_talkex_quick_comment_remove_quick_comment_notify_cb_func)(const char *session, int type, const char *msg_client_id, const char *id, const char *ext, const void *user_data)
Definition: nim_talkex_def_quick_comment.h:74
static const char * kNIMQuickCommentQueryRSPKeyInfoList
list 快捷回复列表
Definition: nim_talkex_def_quick_comment.h:129
static const char * kNIMQuickCommentQueryRSPKeyMsgClientID
string 消息ID
Definition: nim_talkex_def_quick_comment.h:127
static const char * kNIMQuickCommentInfoKeyNeedPush
int 是否需要推送,0表示不需要,1表示需要,默认0
Definition: nim_talkex_def_quick_comment.h:100
void(* nim_talkex_quick_comment_query_quick_comment_cb_func)(int code, const char *response, const void *user_data)
Definition: nim_talkex_def_quick_comment.h:39
void(* nim_talkex_quick_comment_add_quick_comment_notify_cb_func)(const char *session, int type, const char *msg_client_id, const char *info, const void *user_data)
Definition: nim_talkex_def_quick_comment.h:54
static const char * kNIMQuickCommentInfoKeyPushContent
string 推送文案
Definition: nim_talkex_def_quick_comment.h:106
static const char * kNIMQuickCommentInfoKeyClinetID
string 被回复消息的客户端ID
Definition: nim_talkex_def_quick_comment.h:92
void(* nim_talkex_quick_comment_remove_quick_comment_cb_func)(int code, const char *id, const void *user_data)
Definition: nim_talkex_def_quick_comment.h:30
static const char * kNIMQuickCommentInfoKeyPushPayload
string 推送自定义字段JSON
Definition: nim_talkex_def_quick_comment.h:108
static const char * kNIMQuickCommentInfoKeyTime
uint64_t 回复的时间戳
Definition: nim_talkex_def_quick_comment.h:96
static const char * kNIMQuickCommentRemoveParamKeyID
string 服务端没有这个字段,本地为了好处理记录加上的
Definition: nim_talkex_def_quick_comment.h:116
static const char * kNIMQuickCommentInfoKeyServerID
uint64_t被回复消息的服务端ID
Definition: nim_talkex_def_quick_comment.h:94
static const char * kNIMQuickCommentInfoKeyPushTitle
string 推送标题
Definition: nim_talkex_def_quick_comment.h:104
void(* nim_talkex_quick_comment_add_quick_comment_cb_func)(int code, const char *quick_comment_info, const void *user_data)
Definition: nim_talkex_def_quick_comment.h:21
static const char * kNIMQuickCommentInfoKeyNeedBadge
int 是否需要角标,0表示不需要,1表示需要,默认0
Definition: nim_talkex_def_quick_comment.h:102
static const char * kNIMQuickCommentRemoveParamKeyReplyType
int64_t 开发者自定义的回复类型
Definition: nim_talkex_def_quick_comment.h:118
NIM SDK 及 NIM ChatRoom SDK 公用头文件