7#ifndef _NIM_SDK_CPP_TALKEX_H_
8#define _NIM_SDK_CPP_TALKEX_H_
26class NIM_SDK_CPPWRAPPER_DLL_API
TalkEx {
28 class NIM_SDK_CPPWRAPPER_DLL_API
Collect {
76 using AddQuickCommentNotifyCallback =
79 using RemoveQuickCommentNotifyCallback = std::function<void(
const std::string& session,
81 const std::string& msg_client_id,
82 const std::string& quick_comment_id,
84 const std::string& ext)>;
90 static void UnregAllCb();
96 static void RegAddQuickCommentNotify(
const AddQuickCommentNotifyCallback& cb);
103 static void RegRemoveQuickCommentNotify(
const RemoveQuickCommentNotifyCallback& cb);
130 class NIM_SDK_CPPWRAPPER_DLL_API
PinMsg {
132 using PinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const PinMessageInfo&)>;
133 using UnPinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const std::string&)>;
134 using UpdatePinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const PinMessageInfo&)>;
135 using QueryPinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const QueryAllPinMessageResponse&)>;
136 using AddPinMessageNotifyCallback = std::function<void(
const std::string& session,
int to_type,
const PinMessageInfo&)>;
137 using UnPinMessageNotifyCallback = std::function<void(
const std::string& session,
int to_type,
const std::string&
id)>;
138 using UpdatePinMessageNotifyCallback = std::function<void(
const std::string& session,
int to_type,
const PinMessageInfo&)>;
162 static void UpdatePinMessage(
const ModifyPinMessageParam& modify_param,
const UpdatePinMessageCallback& cb);
171 static void QueryAllPinMessage(
const std::string& session,
int to_type,
const QueryPinMessageCallback& cb);
177 static void UnregAllCb();
184 static void RegAddPinMessage(
const AddPinMessageNotifyCallback& cb);
191 static void RegUnPinMessage(
const UnPinMessageNotifyCallback& cb);
198 static void RegUpdatePinMessage(
const UpdatePinMessageNotifyCallback& cb);
Definition: nim_cpp_talkex.h:28
std::function< void(int, int, const CollectInfoList &)> QueryCollectsCallback
分页查询回调模板
Definition: nim_cpp_talkex.h:37
std::function< void(int, const CollectInfo &)> UpdateCollectCallback
更新收藏回调模板
Definition: nim_cpp_talkex.h:35
std::function< void(int code, int count)> RemoveCollectsCallback
删除收藏回调模板
Definition: nim_cpp_talkex.h:33
std::function< void(int code, const CollectInfo &)> AddCollectCallback
添加收藏回调模板
Definition: nim_cpp_talkex.h:31
Definition: nim_cpp_talkex.h:130
聊天功能;主要包括收藏、快捷回复、PinMessage、ThreadMessage、置顶会话
Definition: nim_cpp_talkex.h:26
NIMSessionType
Definition: nim_session_def.h:16
Talkex Pin Message 辅助方法和数据结构定义
收藏内容属性
Definition: nim_talkex_helper_collect.h:24
收藏列表
Definition: nim_talkex_helper_collect.h:45
Definition: nim_talk_helper.h:281
收藏匹配参数
Definition: nim_talkex_helper_collect.h:51
修改、取消Pin Message参数定义
Definition: nim_talkex_helper_pin_message.h:59
Pin消息属性
Definition: nim_talkex_helper_pin_message.h:25
查询Pin Message应答参数定义
Definition: nim_talkex_helper_pin_message.h:72
分页查询收藏列表参数
Definition: nim_talkex_helper_collect.h:74
收藏内容参数
Definition: nim_talkex_helper_collect.h:64