Created
February 4, 2018 18:04
-
-
Save antonicg/ee96ae4fdc034b0d076bf23de8d1361d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.antonicastejon.cryptodata.model | |
import io.reactivex.Single | |
/** | |
* Created by Antoni Castejón on 31/12/2017. | |
*/ | |
class CoinMarketCapDownloader(private val coinMarketCapApi: CoinMarketCapApi) : CoinMarketCapRepository { | |
override fun getCryptoList(page: Int, limit: Int): Single<List<Crypto>> = coinMarketCapApi.getCryptoList(page * limit, limit) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment