Last active
November 19, 2018 01:00
-
-
Save marenovakovic/9d4ee8b180cc15644bf390ee7c236753 to your computer and use it in GitHub Desktop.
This file contains 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.marko.domain.usecase | |
import com.marko.domain.CoroutineDispatchers | |
import com.marko.domain.coins.CoinsRepository | |
import com.marko.domain.entities.CoinEntity | |
import javax.inject.Inject | |
class GetCoins @Inject constructor( | |
coroutineDispatchers: CoroutineDispatchers, | |
private val coinsRepository: CoinsRepository | |
) : UseCase<Unit, List<CoinEntity>>(coroutineDispatchers) { | |
override suspend fun execute(parameters: Unit): List<CoinEntity> = | |
coinsRepository.getCoins() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment