Created
June 26, 2021 08:08
-
-
Save orcchg/5098aa33081f010745bdcb82a1bc8427 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 GetStockByTickerUseCase @Inject constructor( | |
private val repository: StockListRepository, | |
schedulersFactory: SchedulersFactory | |
) : MaybeUseCase<Stock>(schedulersFactory) { | |
override fun sourceImpl(params: Params): Maybe<Stock> = | |
params.processMaybe(PARAM_TICKER, repository::stock) | |
companion object { | |
const val PARAM_TICKER = "ticker" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment