7 #ifndef _NIM_SDK_CPP_SUBSCRIBE_EVENT_H_
8 #define _NIM_SDK_CPP_SUBSCRIBE_EVENT_H_
27 typedef std::function<void(NIMResCode res_code,
const std::list<nim::EventData>& event_list)>
31 typedef std::function<void(NIMResCode res_code,
int event_type,
const std::list<std::string>& faild_list)>
33 typedef std::function<void(NIMResCode res_code,
int event_type,
const std::list<std::string>& faild_list)>
36 typedef std::function<void(NIMResCode res_code,
int event_type,
const std::list<nim::EventSubscribeData>& subscribe_list)>
38 typedef std::function<void(NIMResCode res_code,
int event_type,
const std::list<nim::EventSubscribeData>& subscribe_list)>
49 static void RegPushEventCb(
const PushEventCallback& cb,
const std::string& json_extension =
"");
92 static bool Subscribe(
int event_type,
94 NIMEventSubscribeSyncEventType sync_type,
95 const std::list<std::string>& accid_list,
97 const std::string& json_extension =
"");
113 static bool UnSubscribe(
int event_type,
114 const std::list<std::string>& accid_list,
116 const std::string& json_extension =
"");
144 static bool QuerySubscribe(
int event_type,
145 const std::list<std::string>& accid_list,
147 const std::string& json_extension =
"");
152 #endif //_NIM_SDK_CPP_SUBSCRIBE_EVENT_H_