Package io.nem.sdk.infrastructure.okhttp
Class ChainRepositoryOkHttpImpl
- java.lang.Object
-
- io.nem.sdk.infrastructure.okhttp.AbstractRepositoryOkHttpImpl
-
- io.nem.sdk.infrastructure.okhttp.ChainRepositoryOkHttpImpl
-
- All Implemented Interfaces:
io.nem.sdk.api.ChainRepository
public class ChainRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements io.nem.sdk.api.ChainRepository
Chain http repository.
-
-
Constructor Summary
Constructors Constructor Description ChainRepositoryOkHttpImpl(io.nem.sdk.openapi.okhttp_gson.invoker.ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.reactivex.Observable<java.math.BigInteger>getBlockchainHeight()Get Block chain heightio.reactivex.Observable<io.nem.sdk.model.blockchain.BlockchainScore>getChainScore()Get Block chain scoreio.nem.sdk.openapi.okhttp_gson.api.ChainRoutesApigetClient()-
Methods inherited from class io.nem.sdk.infrastructure.okhttp.AbstractRepositoryOkHttpImpl
call, exceptionHandling, exceptionHandling, extractStatusCodeFromException, getId, getJsonHelper, getOrder, getPageSize, onError
-
-
-
-
Method Detail
-
getClient
public io.nem.sdk.openapi.okhttp_gson.api.ChainRoutesApi getClient()
-
getBlockchainHeight
public io.reactivex.Observable<java.math.BigInteger> getBlockchainHeight()
Get Block chain height- Specified by:
getBlockchainHeightin interfaceio.nem.sdk.api.ChainRepository- Returns:
- io.reactivex.Observable of
BigInteger
-
getChainScore
public io.reactivex.Observable<io.nem.sdk.model.blockchain.BlockchainScore> getChainScore()
Get Block chain score- Specified by:
getChainScorein interfaceio.nem.sdk.api.ChainRepository- Returns:
- io.reactivex.Observable of
BigInteger
-
-