程序包 | 说明 |
---|---|
com.easemob.im.server.api.user | |
com.easemob.im.server.api.user.status |
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<List<EMUserStatus>> |
UserApi.isUsersOnline(List<String> usernames)
批量获取用户在线状态
API使用示例:
EMService service;
List<String> users = new ArrayList<>();
users.add("user1");
users.add("user2");
try {
List<EMUserStatus> userStatuses = service.user().isUsersOnline(users).block();
} catch (EMException e) {
e.getErrorCode();
e.getMessage();
}
|
限定符和类型 | 方法和说明 |
---|---|
List<EMUserStatus> |
UserStatusBatchQueryResponse.getUsersOnline() |
reactor.core.publisher.Mono<List<EMUserStatus>> |
UserStatus.isUsersOnline(List<String> usernames) |
Copyright © 2024. All rights reserved.