Skip to content

Instantly share code, notes, and snippets.

@antonicg
Created February 4, 2018 18:04
Show Gist options
  • Save antonicg/ee96ae4fdc034b0d076bf23de8d1361d to your computer and use it in GitHub Desktop.
Save antonicg/ee96ae4fdc034b0d076bf23de8d1361d to your computer and use it in GitHub Desktop.
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