程序包 | 说明 |
---|---|
com.easemob.im.server.api.metadata | |
com.easemob.im.server.api.metadata.chatroom.delete |
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<ChatRoomMetadataDeleteResponse> |
MetadataApi.deleteChatRoomMetadata(String operator,
String chatroomId,
List<String> keys)
删除聊天室属性
API使用示例:
EMService service;
List<String> keys = new ArrayList<>();
keys.add("nickname");
try {
service.metadata().deleteChatRoomMetadata("operator", "roomId", map, keys).block();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|
reactor.core.publisher.Mono<ChatRoomMetadataDeleteResponse> |
MetadataApi.deleteChatRoomMetadataForced(String chatroomId,
List<String> keys)
强制删除聊天室属性
API使用示例:
EMService service;
List<String> keys = new ArrayList<>();
keys.add("nickname");
try {
service.metadata().deleteChatRoomMetadataForced("roomId", map, keys).block();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<ChatRoomMetadataDeleteResponse> |
ChatRoomMetadataDelete.fromChatRoom(String operator,
String chatroomId,
List<String> keys) |
reactor.core.publisher.Mono<ChatRoomMetadataDeleteResponse> |
ChatRoomMetadataDelete.fromChatRoomForced(String chatroomId,
List<String> keys) |
Copyright © 2024. All rights reserved.