use of io.nem.symbol.sdk.openapi.okhttp_gson.model.HashLockPage in project nem2-sdk-java by nemtech.
the class HashLockRepositoryOkHttpImpl method search.
@Override
public Observable<Page<HashLockInfo>> search(HashLockSearchCriteria criteria) {
String address = toDto(criteria.getAddress());
Integer pageSize = criteria.getPageSize();
Integer pageNumber = criteria.getPageNumber();
String offset = criteria.getOffset();
Order order = toDto(criteria.getOrder());
Callable<HashLockPage> callback = () -> getClient().searchHashLock(address, pageSize, pageNumber, offset, order);
return this.call(callback, this::toPage);
}
Aggregations