Search in sources :

Example 1 with HashLockPage

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);
}
Also used : Order(io.nem.symbol.sdk.openapi.okhttp_gson.model.Order) HashLockPage(io.nem.symbol.sdk.openapi.okhttp_gson.model.HashLockPage)

Aggregations

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