use of io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespaceIds in project nem2-sdk-java by nemtech.
the class NamespaceRepositoryOkHttpImpl method getNamespaceNames.
@Override
public Observable<List<NamespaceName>> getNamespaceNames(List<NamespaceId> namespaceIds) {
NamespaceIds ids = new NamespaceIds().namespaceIds(namespaceIds.stream().map(NamespaceId::getIdAsHex).collect(Collectors.toList()));
Callable<List<NamespaceNameDTO>> callback = () -> getClient().getNamespacesNames(ids);
return exceptionHandling(call(callback).flatMapIterable(item -> item).map(this::toNamespaceName).toList().toObservable());
}
Aggregations