NIM PC Cross Platform SDK
nim::TalkEx::QuickComment Class Reference

Public Types

using AddQuickCommentCallback = std::function< void(int, const QuickCommentInfo &)>
 添加快捷回复回调模板
 
using RemoveQuickCommentCallback = std::function< void(int, const std::string &id)>
 删除快捷回复回调模板
 
using QueryQuickCommentCallback = std::function< void(int, const QueryQuickCommentsResponse &)>
 查询快捷回复回调模板
 
using AddQuickCommentNotifyCallback = std::function< void(const std::string &, NIMSessionType, const std::string &, const QuickCommentInfo &)>
 
using RemoveQuickCommentNotifyCallback = std::function< void(const std::string &session, NIMSessionType type, const std::string &msg_client_id, const std::string &quick_comment_id, const std::string &ext)>
 

Static Public Member Functions

static void UnregAllCb ()
 
static void RegAddQuickCommentNotify (const AddQuickCommentNotifyCallback &cb)
 
static void RegRemoveQuickCommentNotify (const RemoveQuickCommentNotifyCallback &cb)
 
static void AddQuickComment (const IMMessage &msg, const QuickCommentInfo &info, const AddQuickCommentCallback &cb)
 
static void RemoveQuickComment (const IMMessage &msg, const RemoveQuickCommentParam &param, const RemoveQuickCommentCallback &cb)
 
static void QueryQuickCommentList (const QueryQuickCommentsParam &query_param, const QueryQuickCommentCallback &cb)
 

Member Function Documentation

◆ AddQuickComment()

void nim::TalkEx::QuickComment::AddQuickComment ( const IMMessage &  msg,
const QuickCommentInfo &  info,
const AddQuickCommentCallback &  cb 
)
static

添加快捷回复

Parameters
[in]msg被回复的消息
[in]info回复的内容及设置
[in]cb执行结果回调函数
Returns
void 无返回值

◆ QueryQuickCommentList()

void nim::TalkEx::QuickComment::QueryQuickCommentList ( const QueryQuickCommentsParam &  query_param,
const QueryQuickCommentCallback &  cb 
)
static

添加快捷回复

Parameters
[in]query_param查询参数,一次最多只能查询20条消息的快捷回复
[in]cb执行结果回调函数
Returns
void 无返回值

◆ RegAddQuickCommentNotify()

void nim::TalkEx::QuickComment::RegAddQuickCommentNotify ( const AddQuickCommentNotifyCallback &  cb)
static

注册添加快捷回复能知

Parameters
[in]cb收到通知时的回调函数
Returns
void 无返回值

◆ RegRemoveQuickCommentNotify()

void nim::TalkEx::QuickComment::RegRemoveQuickCommentNotify ( const RemoveQuickCommentNotifyCallback &  cb)
static

注册删除快捷回复能知

Parameters
[in]cb收到通知时的回调函数
Returns
void 无返回值

◆ RemoveQuickComment()

void nim::TalkEx::QuickComment::RemoveQuickComment ( const IMMessage &  msg,
const RemoveQuickCommentParam &  param,
const RemoveQuickCommentCallback &  cb 
)
static

添加快捷回复

Parameters
[in]msg被回复的消息
[in]info回复的内容及设置
[in]cb执行结果回调函数
Returns
void 无返回值

◆ UnregAllCb()

void nim::TalkEx::QuickComment::UnregAllCb ( )
static

反注册提供的所有回调

Returns
void 无返回值

The documentation for this class was generated from the following files: