Search in sources :

Example 1 with SecretLockPage

use of io.nem.symbol.sdk.openapi.okhttp_gson.model.SecretLockPage in project nem2-sdk-java by nemtech.

the class SecretLockRepositoryOkHttpImpl method search.

@Override
public Observable<Page<SecretLockInfo>> search(SecretLockSearchCriteria criteria) {
    String address = toDto(criteria.getAddress());
    String secret = criteria.getSecret();
    Integer pageSize = criteria.getPageSize();
    Integer pageNumber = criteria.getPageNumber();
    String offset = criteria.getOffset();
    Order order = toDto(criteria.getOrder());
    Callable<SecretLockPage> callback = () -> getClient().searchSecretLock(address, secret, pageSize, pageNumber, offset, order);
    return this.call(callback, this::toPage);
}
Also used : Order(io.nem.symbol.sdk.openapi.okhttp_gson.model.Order) SecretLockPage(io.nem.symbol.sdk.openapi.okhttp_gson.model.SecretLockPage)

Aggregations

Order (io.nem.symbol.sdk.openapi.okhttp_gson.model.Order)1 SecretLockPage (io.nem.symbol.sdk.openapi.okhttp_gson.model.SecretLockPage)1