use of io.nem.symbol.sdk.openapi.vertx.model.SecretLockPage in project nem2-sdk-java by nemtech.
the class SecretLockRepositoryVertxImpl method search.
@Override
public Observable<Page<SecretLockInfo>> search(SecretLockSearchCriteria criteria) {
String address = toDto(criteria.getAddress());
Integer pageSize = criteria.getPageSize();
Integer pageNumber = criteria.getPageNumber();
String offset = criteria.getOffset();
String secret = criteria.getSecret();
Order order = toDto(criteria.getOrder());
Consumer<Handler<AsyncResult<SecretLockPage>>> handlerConsumer = (h) -> getClient().searchSecretLock(address, secret, pageSize, pageNumber, offset, order, h);
return this.call(handlerConsumer, this::toPage);
}
Aggregations