7 #ifndef _NIM_SDK_CPP_TALKEX_H_
8 #define _NIM_SDK_CPP_TALKEX_H_
26 class NIM_SDK_CPPWRAPPER_DLL_API
TalkEx {
28 class NIM_SDK_CPPWRAPPER_DLL_API
Collect {
70 std::function<void(
const std::string&, NIMSessionType,
const std::string&,
const QuickCommentInfo&)>;
73 const std::string& msg_client_id,
74 const std::string& quick_comment_id,
75 const std::string& ext)>;
81 static void UnregAllCb();
121 class NIM_SDK_CPPWRAPPER_DLL_API
PinMsg {
123 using PinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const PinMessageInfo&)>;
124 using UnPinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const std::string&)>;
125 using UpdatePinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const PinMessageInfo&)>;
126 using QueryPinMessageCallback = std::function<void(
int code,
const std::string& session,
int to_type,
const QueryAllPinMessageResponse&)>;
127 using AddPinMessageNotifyCallback = std::function<void(
const std::string& session,
int to_type,
const PinMessageInfo&)>;
128 using UnPinMessageNotifyCallback = std::function<void(
const std::string& session,
int to_type,
const std::string&
id)>;
129 using UpdatePinMessageNotifyCallback = std::function<void(
const std::string& session,
int to_type,
const PinMessageInfo&)>;
153 static void UpdatePinMessage(
const ModifyPinMessageParam& modify_param,
const UpdatePinMessageCallback& cb);
162 static void QueryAllPinMessage(
const std::string& session,
int to_type,
const QueryPinMessageCallback& cb);
168 static void UnregAllCb();
175 static void RegAddPinMessage(
const AddPinMessageNotifyCallback& cb);
182 static void RegUnPinMessage(
const UnPinMessageNotifyCallback& cb);
189 static void RegUpdatePinMessage(
const UpdatePinMessageNotifyCallback& cb);
194 #endif //_NIM_SDK_CPP_TALKEX_H_