package Ġcom . ols he v ch enko . currency converter . features . converter . domain . use case Ċ Ċ import Ġcom . ols he v ch enko . currency converter . features . converter . domain . repository . Currency Rates Repository Ċ import Ġcom . ols he v ch enko . currency converter . core . Result Ċ import Ġcom . ols he v ch enko . currency converter . core . use case . RX UseCase Ċ import Ġio . reactivex . Scheduler Ċ import Ġio . reactivex . Single Ċ Ċ class ĠRefresh Currency Rates UseCase ( ĊĠĠĠ Ġprivate Ġval Ġrates Repository : ĠCurrency Rates Repository , ĊĠĠĠ Ġsubscribe Scheduler : ĠScheduler , ĊĠĠĠ Ġobserve Scheduler : ĠScheduler Ċ ) Ġ: ĠRX UseCase < Result < Long >, ĠUnit >( subscribe Scheduler , Ġobserve Scheduler ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġbuild UseCase Single ( params : ĠUnit ?): ĠSingle < Result < Long >> Ġ= ĊĠĠĠĠĠĠĠ Ġrates Repository . refresh Rates () Ċ } Ċ