NIM PC Cross Platform SDK
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"
19namespace nim {
20
24class NIM_SDK_CPPWRAPPER_DLL_API PluginIn {
25public:
27 typedef std::function<void(int error_code, const std::string& result)> ChatRoomRequestEnterCallback;
28 typedef std::function<void(int error_code, const std::list<std::string>& link_address_list)>
31
32public:
46 static void ChatRoomRequestEnterAsync(const int64_t room_id,
47 const ChatRoomRequestEnterCallback& callback,
48 const std::string& json_extension = "");
49
59 static void QChatRequestLinkAddress(uint32_t ip_version, const QChatRequestLinkAddressCallback& callback, const std::string& json_extension = "");
60};
61
62} // namespace nim
63
64#endif //_NIM_SDK_CPP_PLUGIN_IN_H_
NIM SDK 提供的plugin接入接口类
Definition: nim_cpp_plugin_in.h:24
std::function< void(int error_code, const std::string &result)> ChatRoomRequestEnterCallback
获取聊天室登录信息回调
Definition: nim_cpp_plugin_in.h:27
std::function< void(int error_code, const std::list< std::string > &link_address_list)> QChatRequestLinkAddressCallback
获取圈组link地址
Definition: nim_cpp_plugin_in.h:30
namespace nim
NIM 公共数据类型定义总的包含文件
定义导出宏