package Ġme . bill z ang ard i . ra ib locks . features . main Ċ Ċ import Ġme . bill z ang ard i . ra ib locks . data . DataManager Ċ import Ġme . bill z ang ard i . ra ib locks . data . model . Bitcoin Response Ċ import Ġme . bill z ang ard i . ra ib locks . data . model . Data Ċ import Ġme . bill z ang ard i . ra ib locks . data . model . X rb Response Ċ import Ġme . bill z ang ard i . ra ib locks . features . base . Base Presenter Ċ import Ġme . bill z ang ard i . ra ib locks . injection . Config Persistent Ċ import Ġme . bill z ang ard i . ra ib locks . util . rx . scheduler . Scheduler Utils Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġz ang ard iw Ġon Ġ 1 2 / 2 2 / 1 7 . Ċ Ġ*/ Ċ @ Config Persistent Ċ class ĠMain Presenter Ġ@ Inject Ċ constructor ( private Ġval Ġm DataManager : ĠData Manager ) Ġ: ĠBase Presenter < Main View >() Ġ{ ĊĊĠĠĠ Ġfun Ġfetch Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġcheck View Attached () ĊĠĠĠĠĠĠĠ Ġm vp View ?. show Progress ( true ) ĊĠĠĠĠĠĠĠ Ġm DataManager . getX rb Price (). compose < X rb Response >( Scheduler Utils . io To Main < X rb Response >()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ({ Ġx rb Response Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm DataManager . get Bitcoin Price (). compose < Bitcoin Response >( Scheduler Utils . io To Main < Bitcoin Response >()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ({ Ġbitcoin Response Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠData ( bitcoin Response . b pi !!. u SD !!. rate Float , Ġbitcoin Response . b pi !!. e UR !!. rate Float , Ġbitcoin Response . b pi !!. g BP !!. rate Float , Ġx rb Response !!. response !!. last !!. toFloat (), Ġx rb Response !!. response !!. high !!. toFloat (), Ġx rb Response !!. response !!. low !!. toFloat ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. store Data ( data ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. show Progress ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. update Data () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ}) Ġ{ Ġthrowable Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. show Error ( throwable ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. show Progress ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ}) Ġ{ Ġthrowable Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. show Error ( throwable ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm vp View ?. show Progress ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }