reactor.core.publisher.Mono<EMMetadataBatch> |
MetadataApi.getMetadataFromChatGroupUsers(String groupId,
List<String> targets,
List<String> properties)
根据属性 key 获取多个群成员的自定义属性
API使用示例:
EMService service;
List<String> targets = new ArrayList<>();
targets.add("user1");
targets.add("user2");
List<String> properties = new ArrayList<>();
properties.add("nickname");
try {
EMMetadataBatch metadataBatch = service.metadata().getMetadataFromUsers("groupId", targets, properties).block();
metadataBatch.getData();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|
reactor.core.publisher.Mono<EMMetadataBatch> |
MetadataApi.getMetadataFromUsers(List<String> targets,
List<String> properties)
批量获取用户属性
API使用示例:
EMService service;
List<String> targets = new ArrayList<>();
targets.add("user1");
targets.add("user2");
List<String> properties = new ArrayList<>();
properties.add("nickname");
try {
EMMetadataBatch metadataBatch = service.metadata().getMetadataFromUsers(targets, properties).block();
metadataBatch.getData();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|