NIM CPP SDK  7.8.1
Public Types | Static Public Member Functions | List of all members
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 &session, NIMSessionType type, const std::string &msg_client_id, 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 Typedef Documentation

◆ AddQuickCommentCallback

using nim::TalkEx::QuickComment::AddQuickCommentCallback = std::function < void(int, const QuickCommentInfo&)>

添加快捷回复回调模板

◆ AddQuickCommentNotifyCallback

using nim::TalkEx::QuickComment::AddQuickCommentNotifyCallback = std::function<void( const std::string & session, NIMSessionType type, const std::string & msg_client_id, const QuickCommentInfo&)>

添加快捷回复通知回调

◆ QueryQuickCommentCallback

查询快捷回复回调模板

◆ RemoveQuickCommentCallback

using nim::TalkEx::QuickComment::RemoveQuickCommentCallback = std::function < void(int, const std::string& id)>

删除快捷回复回调模板

◆ RemoveQuickCommentNotifyCallback

using nim::TalkEx::QuickComment::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)>

删除快捷回复通知回调

Member Function Documentation

◆ AddQuickComment()

static 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()

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

注册添加快捷回复能知

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

◆ RegRemoveQuickCommentNotify()

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

注册删除快捷回复能知

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

◆ RemoveQuickComment()

static 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 file: