use of io.nem.symbol.sdk.openapi.okhttp_gson.model.AccountIds in project nem2-sdk-java by nemtech.
the class AccountRepositoryOkHttpImpl method getAccountsInfo.
@Override
public Observable<List<AccountInfo>> getAccountsInfo(List<Address> addresses) {
AccountIds accountIds = new AccountIds().addresses(addresses.stream().map(Address::plain).collect(Collectors.toList()));
Callable<List<AccountInfoDTO>> callback = () -> getClient().getAccountsInfo(accountIds);
return exceptionHandling(call(callback).flatMapIterable(item -> item).map(this::toAccountInfo).toList().toObservable());
}
Aggregations