Skip to content

Instantly share code, notes, and snippets.

@orcchg
Created June 26, 2021 08:54
Show Gist options
  • Save orcchg/814e7b2c0cdbb38226687e14d2bb341c to your computer and use it in GitHub Desktop.
Save orcchg/814e7b2c0cdbb38226687e14d2bb341c to your computer and use it in GitHub Desktop.
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