package Ġj ule ssss s . github . bitcoin material . ui . home Ċ Ċ import Ġio . reactivex . Single Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ import Ġj ule ssss s . github . bitcoin material . api . ServiceProvider . coin base Service Ċ import Ġj ule ssss s . github . bitcoin material . data . C urrencies Response Ċ import Ġj ule ssss s . github . bitcoin material . data . Price Response Ċ import Ġuk . co . ost modern . util . Scheduler Provider Ċ Ċ class ĠHome ViewModel Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġschedule Provider Ġby Ġlazy Ġ{ ĠScheduler Provider ( Schedulers . io (), ĠAndroid Schedulers . main Thread ()) Ġ} ĊĊĠĠĠ Ġvar Ġcurrency Pair : ĠString Ġ= Ġ" BTC - GBP " ĊĊĠĠĠ Ġfun Ġget Buy Price (): ĠSingle < Price Response > Ġ= Ġcoin base Service . get Buy Price () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( schedule Provider . getS chedulers For Single ()) ĊĊĠĠĠ Ġfun Ġget Sell Price (): ĠSingle < Price Response > Ġ= Ġcoin base Service . getS ell Price () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( schedule Provider . getS chedulers For Single ()) ĊĊĠĠĠ Ġfun Ġget Spot Price (): ĠSingle < Price Response > Ġ= Ġcoin base Service . get Spot Price ( currency Pair ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( schedule Provider . getS chedulers For Single ()) ĊĊĠĠĠ Ġfun ĠgetC urrencies (): ĠSingle < C urrencies Response > Ġ= Ġcoin base Service . getC urrencies () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( schedule Provider . getS chedulers For Single ()) Ċ Ċ }