7#ifndef _NIM_SDK_CPP_SUBSCRIBE_EVENT_H_
8#define _NIM_SDK_CPP_SUBSCRIBE_EVENT_H_
28 typedef std::function<void(
NIMResCode res_code,
const std::list<nim::EventData>& event_list)>
34 typedef std::function<void(
NIMResCode res_code,
int event_type,
const std::list<std::string>& faild_list)>
37 typedef std::function<void(
NIMResCode res_code,
int event_type,
const std::list<std::string>& faild_list)>
42 typedef std::function<void(
NIMResCode res_code,
int event_type,
const std::list<nim::EventSubscribeData>& subscribe_list)>
45 typedef std::function<void(
NIMResCode res_code,
int event_type,
const std::list<nim::EventSubscribeData>& subscribe_list)>
57 static void RegPushEventCb(
const PushEventCallback& cb,
const std::string& json_extension =
"");
100 static bool Subscribe(
int event_type,
103 const std::list<std::string>& accid_list,
105 const std::string& json_extension =
"");
121 static bool UnSubscribe(
int event_type,
122 const std::list<std::string>& accid_list,
124 const std::string& json_extension =
"");
152 static bool QuerySubscribe(
int event_type,
153 const std::list<std::string>& accid_list,
155 const std::string& json_extension =
"");
NIM 订阅事件相关接口
Definition: nim_cpp_subscribe_event.h:24
std::function< void(NIMResCode res_code, int event_type, const std::list< nim::EventSubscribeData > &subscribe_list)> BatchQuerySubscribeEventCallback
查询指定事件的全部订阅关系回调模板
Definition: nim_cpp_subscribe_event.h:47
std::function< void(NIMResCode res_code, int event_type, const std::list< nim::EventSubscribeData > &subscribe_list)> QuerySubscribeEventCallback
按帐号查询指定事件的订阅关系回调模板
Definition: nim_cpp_subscribe_event.h:44
std::function< void(NIMResCode res_code, const nim::EventData &event_data)> PushEventCallback
接收订阅事件回调模板
Definition: nim_cpp_subscribe_event.h:27
std::function< void(NIMResCode res_code, int event_type, const nim::EventData &event_data)> PublishEventCallback
发布事件回调模板
Definition: nim_cpp_subscribe_event.h:33
std::function< void(NIMResCode res_code, int event_type, const std::list< std::string > &faild_list)> UnSubscribeEventCallback
按账号取消指定事件的订阅关系回调模板
Definition: nim_cpp_subscribe_event.h:39
std::function< void(NIMResCode res_code, int event_type, const std::list< std::string > &faild_list)> SubscribeEventCallback
订阅事件回调模板
Definition: nim_cpp_subscribe_event.h:36
std::function< void(NIMResCode res_code, const std::list< nim::EventData > &event_list)> BatchPushEventCallback
批量接收订阅事件回调模板
Definition: nim_cpp_subscribe_event.h:30
std::function< void(NIMResCode res_code, int event_type)> BatchUnSubscribeEventCallback
取消指定事件的全部订阅关系回调模板
Definition: nim_cpp_subscribe_event.h:41
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
NIMEventSubscribeSyncEventType
Definition: nim_subscribe_event_def.h:95
NIMResCode
Definition: public_defines.h:21
事件数据
Definition: nim_subscribe_event_helper.h:24