1#ifndef V2_NIM_CHATROOM_SERVICE_H
2#define V2_NIM_CHATROOM_SERVICE_H
215 uint64_t tempChatBannedDuration,
216 bool notificationEnabled,
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_smart_ptr.h:30
Definition: ne_stl_string.h:19
聊天室服务
Definition: v2_nim_chatroom_service.hpp:17
virtual void registerCustomAttachmentParser(const nstd::shared_ptr< V2NIMChatRoomMessageCustomAttachmentParser > &parser)=0
注册聊天室自定义消息附件解析器,解析自定义消息类型为 100 的附件
virtual void setMemberTempChatBanned(nstd::string accountId, uint64_t tempChatBannedDuration, bool notificationEnabled, nstd::string notificationExtension, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置聊天室成员临时禁言状态
virtual void setTempChatBannedByTag(V2NIMChatroomTagTempChatBannedParams params, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
按聊天室标签临时禁言
virtual void updateChatroomInfo(V2NIMChatroomUpdateParams updateParams, V2NIMAntispamConfig antispamConfig, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新聊天室信息
virtual void addChatroomListener(V2NIMChatroomListener listener)=0
添加聊天室监听器
virtual void getMemberListByTag(V2NIMChatroomTagMemberOption option, V2NIMSuccessCallback< V2NIMChatroomMemberListResult > success, V2NIMFailureCallback failure)=0
根据标签查询成员列表
virtual void getMemberCountByTag(nstd::string tag, V2NIMSuccessCallback< uint64_t > success, V2NIMFailureCallback failure)=0
查询某个标签下的成员人数
virtual void getMemberByIds(nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::vector< V2NIMChatroomMember > > success, V2NIMFailureCallback failure)=0
根据账号列表查询成员信息
virtual void updateChatroomLocationInfo(V2NIMChatroomLocationConfig locationConfig, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新坐标信息
virtual void getMessageListByTag(V2NIMChatroomTagMessageOption messageOption, V2NIMSuccessCallback< nstd::vector< V2NIMChatroomMessage > > success, V2NIMFailureCallback failure)=0
根据标签查询消息列表
virtual void kickMember(nstd::string accountId, nstd::string notificationExtension, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
踢出聊天室成员
virtual void setMemberChatBannedStatus(nstd::string accountId, bool chatBanned, nstd::string notificationExtension, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置聊天室成员禁言状态
virtual void unRegisterCustomAttachmentParser(const nstd::shared_ptr< V2NIMChatRoomMessageCustomAttachmentParser > &parser)=0
反注册聊天室自定义消息附件解析器
virtual void updateSelfMemberInfo(V2NIMChatroomSelfMemberUpdateParams updateParams, V2NIMAntispamConfig antispamConfig, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新自己在聊天室的成员信息
virtual void updateChatroomTags(V2NIMChatroomTagsUpdateParams updateParams, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新聊天室 tag 信息
virtual void removeChatroomListener(V2NIMChatroomListener listener)=0
移除聊天室监听器
virtual void setMemberBlockedStatus(nstd::string accountId, bool blocked, nstd::string notificationExtension, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置聊天室成员黑名单状态
virtual void getMessageList(V2NIMChatroomMessageListOption option, V2NIMSuccessCallback< nstd::vector< V2NIMChatroomMessage > > success, V2NIMFailureCallback failure)=0
查询历史消息
virtual void getMemberListByOption(V2NIMChatroomMemberQueryOption queryOption, V2NIMSuccessCallback< V2NIMChatroomMemberListResult > success, V2NIMFailureCallback failure)=0
分页获取聊天室成员列表
virtual void cancelMessageAttachmentUpload(V2NIMChatroomMessage message, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
取消文件消息附件上传
virtual void updateMemberRole(nstd::string accountId, V2NIMChatroomMemberRoleUpdateParams upadateParams, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新聊天室成员角色
virtual void sendMessage(V2NIMChatroomMessage message, V2NIMSendChatroomMessageParams params, V2NIMSuccessCallback< V2NIMSendChatroomMessageResult > success, V2NIMFailureCallback failure, V2NIMProgressCallback progress)=0
发送消息
通用成功
Definition: v2_nim_def_callback.hpp:7
Definition: v2_nim_ai_service.hpp:4
Definition: ne_stl_bind.h:132
Definition: v2_nim_def_struct.hpp:1546
Definition: v2_nim_def_callback.hpp:216
Definition: v2_nim_def_struct.hpp:1766
Definition: v2_nim_def_struct.hpp:1938
Definition: v2_nim_def_struct.hpp:1973
Definition: v2_nim_def_struct.hpp:1867
Definition: v2_nim_def_struct.hpp:1962
Definition: v2_nim_def_struct.hpp:1982
Definition: v2_nim_def_struct.hpp:2021
Definition: v2_nim_def_struct.hpp:2030
Definition: v2_nim_def_struct.hpp:1997
Definition: v2_nim_def_struct.hpp:195
Definition: v2_nim_def_struct.hpp:1910