Package io.nem.sdk.infrastructure.okhttp
Class BlockRepositoryOkHttpImpl
- java.lang.Object
-
- io.nem.sdk.infrastructure.okhttp.AbstractRepositoryOkHttpImpl
-
- io.nem.sdk.infrastructure.okhttp.BlockRepositoryOkHttpImpl
-
- All Implemented Interfaces:
io.nem.sdk.api.BlockRepository
public class BlockRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements io.nem.sdk.api.BlockRepository
Blockchain http repository.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BlockRepositoryOkHttpImpl(io.nem.sdk.openapi.okhttp_gson.invoker.ApiClient apiClient)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.reactivex.Observable<io.nem.sdk.model.blockchain.BlockInfo>getBlockByHeight(java.math.BigInteger height)io.reactivex.Observable<java.util.List<io.nem.sdk.model.blockchain.BlockInfo>>getBlocksByHeightWithLimit(java.math.BigInteger height, int limit)io.reactivex.Observable<java.util.List<io.nem.sdk.model.transaction.Transaction>>getBlockTransactions(java.math.BigInteger height)io.reactivex.Observable<java.util.List<io.nem.sdk.model.transaction.Transaction>>getBlockTransactions(java.math.BigInteger height, io.nem.sdk.api.QueryParams queryParams)io.nem.sdk.openapi.okhttp_gson.api.BlockRoutesApigetClient()io.reactivex.Observable<io.nem.sdk.model.blockchain.MerkelProofInfo>getMerkleTransaction(java.math.BigInteger height, java.lang.String hash)static io.nem.sdk.model.blockchain.BlockInfotoBlockInfo(io.nem.sdk.openapi.okhttp_gson.model.BlockInfoDTO blockInfoDTO)-
Methods inherited from class io.nem.sdk.infrastructure.okhttp.AbstractRepositoryOkHttpImpl
call, exceptionHandling, exceptionHandling, extractStatusCodeFromException, getId, getJsonHelper, getOrder, getPageSize, onError
-
-
-
-
Method Detail
-
getBlockByHeight
public io.reactivex.Observable<io.nem.sdk.model.blockchain.BlockInfo> getBlockByHeight(java.math.BigInteger height)
- Specified by:
getBlockByHeightin interfaceio.nem.sdk.api.BlockRepository
-
getBlockTransactions
public io.reactivex.Observable<java.util.List<io.nem.sdk.model.transaction.Transaction>> getBlockTransactions(java.math.BigInteger height, io.nem.sdk.api.QueryParams queryParams)- Specified by:
getBlockTransactionsin interfaceio.nem.sdk.api.BlockRepository
-
getBlockTransactions
public io.reactivex.Observable<java.util.List<io.nem.sdk.model.transaction.Transaction>> getBlockTransactions(java.math.BigInteger height)
- Specified by:
getBlockTransactionsin interfaceio.nem.sdk.api.BlockRepository
-
getBlocksByHeightWithLimit
public io.reactivex.Observable<java.util.List<io.nem.sdk.model.blockchain.BlockInfo>> getBlocksByHeightWithLimit(java.math.BigInteger height, int limit)- Specified by:
getBlocksByHeightWithLimitin interfaceio.nem.sdk.api.BlockRepository
-
getMerkleTransaction
public io.reactivex.Observable<io.nem.sdk.model.blockchain.MerkelProofInfo> getMerkleTransaction(java.math.BigInteger height, java.lang.String hash)- Specified by:
getMerkleTransactionin interfaceio.nem.sdk.api.BlockRepository
-
toBlockInfo
public static io.nem.sdk.model.blockchain.BlockInfo toBlockInfo(io.nem.sdk.openapi.okhttp_gson.model.BlockInfoDTO blockInfoDTO)
-
getClient
public io.nem.sdk.openapi.okhttp_gson.api.BlockRoutesApi getClient()
-
-