package Ġorg . simple . clin ic . home . help Ċ Ċ import Ġcom . spotify . mob ius . rx 2 . Rx Mob ius Ċ import Ġdagger . ass isted . Ass isted Ċ import Ġdagger . ass isted . Ass isted Factory Ċ import Ġdagger . ass isted . Ass isted Inject Ċ import Ġio . reactivex . Observable Transformer Ċ import Ġorg . simple . clin ic . help . Help Repository Ċ import Ġorg . simple . clin ic . help . Help Sync Ċ import Ġorg . simple . clin ic . util . scheduler . Schedulers Provider Ċ Ċ class ĠHelp Screen Effect Handler Ġ@ Ass isted Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġhelp Repository : ĠHelp Repository , ĊĠĠĠ Ġprivate Ġval Ġhelp Sync : ĠHelp Sync , ĊĠĠĠ Ġprivate Ġval Ġs chedulers Provider : ĠS chedulers Provider , ĊĠĠĠ Ġ@ Ass isted Ġprivate Ġval Ġui Actions : ĠHelp Screen Ui Actions Ċ ) Ġ{ ĊĊĠ Ġ@ Ass isted Factory ĊĠ Ġinterface ĠFactory Ġ{ ĊĠĠĠ Ġfun Ġcreate ( ui Actions : ĠHelp Screen Ui Actions ): ĠHelp Screen Effect Handler ĊĠ Ġ} ĊĊĠ Ġfun Ġbuild (): ĠObservable Transformer < Help Screen Effect , ĠHelp Screen Event > Ġ= ĠRx Mob ius ĊĠĠĠĠĠ Ġ. subtype Effect Handler < Help Screen Effect , ĠHelp Screen Event >() ĊĠĠĠĠĠ Ġ. addAction ( Show Loading View :: class . java , Ġui Actions :: show Loading View , Ġs chedulers Provider . ui ()) ĊĠĠĠĠĠ Ġ. add Transformer ( Load Help Content :: class . java , Ġload Help Content ()) ĊĠĠĠĠĠ Ġ. add Transformer ( Sync Help :: class . java , Ġsync Help ()) ĊĠĠĠĠĠ Ġ. build () ĊĊĠ Ġprivate Ġfun Ġsync Help (): ĠObservable Transformer < Sync Help , ĠHelp Screen Event > Ġ{ ĊĠĠĠ Ġreturn ĠObservable Transformer Ġ{ Ġeffects Ġ-> ĊĠĠĠĠĠ Ġeffects ĊĠĠĠĠĠĠĠĠĠ Ġ. observe On ( schedul ers Provider . io ()) ĊĠĠĠĠĠĠĠĠĠ Ġ. flatMap Single Ġ{ Ġhelp Sync . pull With Result () Ġ} ĊĠĠĠĠĠĠĠĠĠ Ġ. map (:: Help Sync Pull Result ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġload Help Content (): ĠObservable Transformer < Load Help Content , ĠHelp Screen Event > Ġ{ ĊĠĠĠ Ġreturn ĠObservable Transformer Ġ{ Ġeffects Ġ-> ĊĠĠĠĠĠ Ġeffects ĊĠĠĠĠĠĠĠĠĠ Ġ. observe On ( schedul ers Provider . io ()) ĊĠĠĠĠĠĠĠĠĠ Ġ. flatMap Ġ{ Ġhelp Repository . help Content Text () Ġ} ĊĠĠĠĠĠĠĠĠĠ Ġ. map (:: Help Content Loaded ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ