class AccountRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements AccountRepository {

  @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());
  }

  public  AccountRepositoryOkHttpImpl(ApiClient apiClient);

}