Created
June 26, 2021 08:54
-
-
Save orcchg/814e7b2c0cdbb38226687e14d2bb341c 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
class GetStocksUseCase @Inject constructor( | |
private val repository: StockListRepository, | |
schedulersFactory: SchedulersFactory | |
) : SingleUseCase<List<Stock>>(schedulersFactory) { | |
override fun sourceImpl(params: Params): Single<List<Stock>> = | |
repository.stocks() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment