NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_talkex_def_quick_comment.h 文件参考

快捷回复接口相关的常量函数等定义头文件 更多...

#include "public_defines.h"

浏览源代码.

类型定义

typedef void(* nim_talkex_quick_comment_add_quick_comment_cb_func) (int code, const char *quick_comment_info, const void *user_data)
 
typedef void(* nim_talkex_quick_comment_remove_quick_comment_cb_func) (int code, const char *id, const void *user_data)
 
typedef void(* nim_talkex_quick_comment_query_quick_comment_cb_func) (int code, const char *response, const void *user_data)
 
typedef 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)
 
typedef 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)
 

变量

快捷回复Json Keys
static const char * kNIMQuickCommentInfoKeyID = "id"
 string 服务端没有这个字段,本地为了好处理记录加上的(message serverid + from_accid + type)
 
static const char * kNIMQuickCommentInfoKeyFromAccID = "from_account"
 string回复者的 accid
 
static const char * kNIMQuickCommentInfoKeyReplyType = "reply_type"
 int64_t 开发者自定义的回复类型 不可使用0
 
static const char * kNIMQuickCommentInfoKeyClinetID = "client_id"
 string 被回复消息的客户端ID
 
static const char * kNIMQuickCommentInfoKeyServerID = "server_id"
 uint64_t被回复消息的服务端ID
 
static const char * kNIMQuickCommentInfoKeyTime = "time"
 uint64_t 回复的时间戳
 
static const char * kNIMQuickCommentInfoKeyExt = "ext"
 string 自定义扩展字段,最大32字符
 
static const char * kNIMQuickCommentInfoKeyNeedPush = "need_push"
 int 是否需要推送,0表示不需要,1表示需要,默认0
 
static const char * kNIMQuickCommentInfoKeyNeedBadge = "need_badge"
 int 是否需要角标,0表示不需要,1表示需要,默认0
 
static const char * kNIMQuickCommentInfoKeyPushTitle = "push_title"
 string 推送标题
 
static const char * kNIMQuickCommentInfoKeyPushContent = "push_content"
 string 推送文案
 
static const char * kNIMQuickCommentInfoKeyPushPayload = "push_payload"
 string 推送自定义字段JSON
 
删除快捷回复参数Json Keys
static const char * kNIMQuickCommentRemoveParamKeyID = "id"
 string 服务端没有这个字段,本地为了好处理记录加上的
 
static const char * kNIMQuickCommentRemoveParamKeyReplyType = "reply_type"
 int64_t 开发者自定义的回复类型
 
static const char * kNIMQuickCommentRemoveParamKeyExt = "ext"
 string 取消操作的扩展字段
 
查询快捷回复应答参数Json Keys
static const char * kNIMQuickCommentQueryRSPKeyMsgClientID = "client_id"
 string 消息ID
 
static const char * kNIMQuickCommentQueryRSPKeyInfoList = "info_list"
 list 快捷回复列表
 

详细描述

快捷回复接口相关的常量函数等定义头文件

日期
2020/04/19

类型定义说明

◆ nim_talkex_quick_comment_add_quick_comment_cb_func

void(* nim_talkex_quick_comment_add_quick_comment_cb_func)(int code, const char *quick_comment_info, const void *user_data)

添加快捷回复回调函数定义

参数
[out]code执行结果
[out]quick_comment_info添加快捷回复成功后会返回收藏的内容
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

◆ nim_talkex_quick_comment_add_quick_comment_notify_cb_func

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)

添加快捷通知回调函数定义

参数
[out]session查询消息属于哪个会话ID
[out]type消息会话类型
[out]msg_client_id消息ID
[out]info回复的内容
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

◆ nim_talkex_quick_comment_query_quick_comment_cb_func

void(* nim_talkex_quick_comment_query_quick_comment_cb_func)(int code, const char *response, const void *user_data)

删除快捷回复回调函数定义

参数
[out]code执行结果
[out]response查询结果
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

◆ nim_talkex_quick_comment_remove_quick_comment_cb_func

void(* nim_talkex_quick_comment_remove_quick_comment_cb_func)(int code, const char *id, const void *user_data)

删除快捷回复回调函数定义

参数
[out]code执行结果
[out]id被删除的快捷回复ID
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

◆ nim_talkex_quick_comment_remove_quick_comment_notify_cb_func

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)

添加快捷通知回调函数定义

参数
[out]session查询消息属于哪个会话ID
[out]type消息会话类型
[out]msg_client_id消息ID
[out]id被删除的快捷回复id
[out]ext扩展字段
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

变量说明

◆ kNIMQuickCommentInfoKeyClinetID

const char* kNIMQuickCommentInfoKeyClinetID = "client_id"
static

string 被回复消息的客户端ID

◆ kNIMQuickCommentInfoKeyExt

const char* kNIMQuickCommentInfoKeyExt = "ext"
static

string 自定义扩展字段,最大32字符

◆ kNIMQuickCommentInfoKeyFromAccID

const char* kNIMQuickCommentInfoKeyFromAccID = "from_account"
static

string回复者的 accid

◆ kNIMQuickCommentInfoKeyID

const char* kNIMQuickCommentInfoKeyID = "id"
static

string 服务端没有这个字段,本地为了好处理记录加上的(message serverid + from_accid + type)

◆ kNIMQuickCommentInfoKeyNeedBadge

const char* kNIMQuickCommentInfoKeyNeedBadge = "need_badge"
static

int 是否需要角标,0表示不需要,1表示需要,默认0

◆ kNIMQuickCommentInfoKeyNeedPush

const char* kNIMQuickCommentInfoKeyNeedPush = "need_push"
static

int 是否需要推送,0表示不需要,1表示需要,默认0

◆ kNIMQuickCommentInfoKeyPushContent

const char* kNIMQuickCommentInfoKeyPushContent = "push_content"
static

string 推送文案

◆ kNIMQuickCommentInfoKeyPushPayload

const char* kNIMQuickCommentInfoKeyPushPayload = "push_payload"
static

string 推送自定义字段JSON

◆ kNIMQuickCommentInfoKeyPushTitle

const char* kNIMQuickCommentInfoKeyPushTitle = "push_title"
static

string 推送标题

◆ kNIMQuickCommentInfoKeyReplyType

const char* kNIMQuickCommentInfoKeyReplyType = "reply_type"
static

int64_t 开发者自定义的回复类型 不可使用0

◆ kNIMQuickCommentInfoKeyServerID

const char* kNIMQuickCommentInfoKeyServerID = "server_id"
static

uint64_t被回复消息的服务端ID

◆ kNIMQuickCommentInfoKeyTime

const char* kNIMQuickCommentInfoKeyTime = "time"
static

uint64_t 回复的时间戳

◆ kNIMQuickCommentQueryRSPKeyInfoList

const char* kNIMQuickCommentQueryRSPKeyInfoList = "info_list"
static

list 快捷回复列表

◆ kNIMQuickCommentQueryRSPKeyMsgClientID

const char* kNIMQuickCommentQueryRSPKeyMsgClientID = "client_id"
static

string 消息ID

◆ kNIMQuickCommentRemoveParamKeyExt

const char* kNIMQuickCommentRemoveParamKeyExt = "ext"
static

string 取消操作的扩展字段

◆ kNIMQuickCommentRemoveParamKeyID

const char* kNIMQuickCommentRemoveParamKeyID = "id"
static

string 服务端没有这个字段,本地为了好处理记录加上的

◆ kNIMQuickCommentRemoveParamKeyReplyType

const char* kNIMQuickCommentRemoveParamKeyReplyType = "reply_type"
static

int64_t 开发者自定义的回复类型