11#ifndef ROOM_SERVICE_INTERFACE_H
12#define ROOM_SERVICE_INTERFACE_H
virtual void exportChatroomHistoryMessages(const std::string &roomArchiveId, const NECallback< std::string > &callback)=0
导出指定会议聊天室内的消息
virtual ~INERoomService()=default
析构函数
NECallback< INERoomContext * > NEJoinRoomCallback
加入房间回调
virtual void rejectInvite(const std::string &roomUuid, const NECallback< std::string > &callback)=0
挂断正在进行的呼叫,无论是正在响铃还是等待响铃都可以使用
virtual void createRoom(const NECreateRoomParams ¶ms, const NECreateRoomOptions &options, const NERoomCallback &callback)=0
创建一个房间,不会加入房间
NECallback< INEPreviewRoomContext > NEPreviewRoomCallback
房间预览回调
virtual INERoomContext * getRoomContext(const std::string &roomUuid)=0
获取房间上下文
NECallback< std::list< SharedChatMessagePtr > > NERoomFetchChatRoomMessageCallback
检索聊天室消息回调
NECallback< std::list< NERoomRecord > > NEGetRecordsCallback
获取房间录制信息回调
virtual void getRoomCloudRecordList(const std::string &roomArchiveId, const NEGetRecordsCallback &callback)=0
获取房间录制信息
NECallback< NERoomTemplate > NERoomTemplateCallback
房间服务获取模板回调
virtual void fetchRoomTemplate(const std::string &roomUuid, const NERoomTemplateCallback &callback)=0
获取房间模板
virtual void joinRoom(const NEJoinRoomParams ¶ms, const NEJoinRoomOptions &options, const NEJoinRoomCallback &callback)=0
加入房间
INERoomService()=default
构造函数
virtual void previewRoom(const NEPreviewRoomParams ¶ms, const NEPreviewRoomOptions &options, const NEPreviewRoomCallback &callback)=0
房间预览
virtual void fetchChatroomHistoryMessages(const std::string &roomArchiveId, NEHistoryMessageSearchOption option, const NERoomFetchChatRoomMessageCallback &callback)=0
会议外获取指定会议聊天室内的消息
NECallback<> NERoomCallback
房间服务回调
virtual INEPreviewRoomContext * getPreviewRoomContext()=0
获取房间预览上下文
virtual void joinRoomByInvite(const NEJoinRoomParams ¶ms, const NEJoinRoomOptions &options, const NEJoinRoomCallback &callback)=0
加入房间通过邀请
struct tagNECreateRoomParams { std::string roomUuid; std::string roomName; std::string password; int maxMembers{-1}; int templateId; std::map< std::string, std::string > initialProperties; } NECreateRoomParams
创建房间参数
struct tagNEJoinRoomOptions { bool enableMyAudioDeviceOnJoinRtc=false;} NEJoinRoomOptions
加入房间选项
struct tagNECreateRoomOptions { bool enableRecord=false; bool enableLive=false; bool enableRtc=true; bool enableChatroom=false; bool enableWhiteboard=false; std::map< std::string, std::string > roleBind; bool enableWaitingRoom=false; bool enableSIPInvite=false; bool enableAPPInvite=false;} NECreateRoomOptions
创建房间属性
struct tagNEJoinRoomParams { std::string roomUuid; std::string userName; std::string avatar; std::string role; std::string password; std::map< std::string, std::string > initialProperties; } NEJoinRoomParams
加入房间时参数
std::function< void(int, const std::string &, const TResultParam &...)> NECallback
通用回调
struct tagNEPreviewRoomParams {} NEPreviewRoomParams
房间预览参数
struct tagNEPreviewRoomOptions {} NEPreviewRoomOptions
房间预览选项