use of io.nem.symbol.sdk.openapi.vertx.model.HashLockPage in project nem2-sdk-java by nemtech.
the class HashLockRepositoryVertxImpl 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());
Consumer<Handler<AsyncResult<HashLockPage>>> handlerConsumer = (h) -> getClient().searchHashLock(address, pageSize, pageNumber, offset, order, h);
return this.call(handlerConsumer, this::toPage);
}
Aggregations