程序包 | 说明 |
---|---|
com.easemob.im.server.api.metadata | |
com.easemob.im.server.api.metadata.chatroom.get |
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<ChatRoomMetadataGetResponse> |
MetadataApi.listChatRoomMetadata(String chatroomId,
List<String> keys)
获取聊天室属性
API使用示例:
EMService service;
List<String> keys = new ArrayList<>();
keys.add("nickname");
try {
service.metadata().listChatRoomMetadata("roomId", keys).block();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|
reactor.core.publisher.Mono<ChatRoomMetadataGetResponse> |
MetadataApi.listChatRoomMetadataAll(String chatroomId)
获取所有的聊天室属性
API使用示例:
EMService service;
try {
service.metadata().listChatRoomMetadataAll("roomId").block();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<ChatRoomMetadataGetResponse> |
ChatRoomMetadataGet.listChatRoomMetadata(String chatroomId,
List<String> keys) |
reactor.core.publisher.Mono<ChatRoomMetadataGetResponse> |
ChatRoomMetadataGet.listChatRoomMetadataAll(String chatroomId) |
Copyright © 2024. All rights reserved.