NIM SDK API  9.0.0
nim_cpp_plugin_in.h
Go to the documentation of this file.
1 
7 #ifndef _NIM_SDK_CPP_PLUGIN_IN_H_
8 #define _NIM_SDK_CPP_PLUGIN_IN_H_
9 
10 #include <functional>
11 #include <list>
12 #include <string>
14 #include "nim_define_include.h"
19 namespace nim {
20 
24 class NIM_SDK_CPPWRAPPER_DLL_API PluginIn {
25 public:
26  typedef std::function<void(int error_code, const std::string& result)> ChatRoomRequestEnterCallback;
27  typedef std::function<void(int error_code, const std::list<std::string>& link_address_list)>
30 public:
44  static void ChatRoomRequestEnterAsync(const int64_t room_id,
45  const ChatRoomRequestEnterCallback& callback,
46  const std::string& json_extension = "");
47 
57  static void QChatRequestLinkAddress(uint32_t ip_version, const QChatRequestLinkAddressCallback& callback, const std::string& json_extension = "");
58 };
59 
60 } // namespace nim
61 
62 #endif //_NIM_SDK_CPP_PLUGIN_IN_H_
nim::PluginIn::QChatRequestLinkAddressCallback
std::function< void(int error_code, const std::list< std::string > &link_address_list)> QChatRequestLinkAddressCallback
Definition: nim_cpp_plugin_in.h:28
nim::PluginIn
NIM SDK 提供的plugin接入接口类
Definition: nim_cpp_plugin_in.h:24
nim
namespace nim
nim::PluginIn::ChatRoomRequestEnterCallback
std::function< void(int error_code, const std::string &result)> ChatRoomRequestEnterCallback
Definition: nim_cpp_plugin_in.h:26
nim_sdk_cpp_wrapper.h
定义导出宏