package Ġorg . m if os . mobile . cn . data . data manager Ċ Ċ import Ġio . reactivex . Observable Ċ import Ġio . reactivex . Observable Source Ċ import Ġio . reactivex . functions . Function Ċ import Ġorg . m if os . mobile . cn . data . local . Preferences Helper Ċ import Ġorg . m if os . mobile . cn . data . models . accounts . deposit . Deposit Account Ċ import Ġorg . m if os . mobile . cn . data . remote . Base Api Manager Ċ import Ġorg . m if os . mobile . cn . f akes ource . Fake Remote DataSource Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠData Manager Deposit Details Ġ@ Inject Ġconstructor ( private Ġvar Ġbase Api Manager : ĠBase Api Manager , Ġpreferences Helper : ĠPreferences Helper , Ġdata Manager Auth : ĠData Manager Auth ) Ġ: ĊĠĠĠĠĠĠĠ ĠM if os Base DataManager ( data Manager Auth , Ġpreferences Helper ) Ġ{ ĊĊĠĠĠ Ġfun Ġget Customer Deposit Account Details ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Identifier : ĠString ): ĠObservable < Deposit Account > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġauthenticated Observable Api ( base Api Manager . get Deposit Api () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. fetch Customer Deposit Details ( account Identifier )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. onError Resume Next ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠFunction < Throwable , ĠObservable Source < Deposit Account >> Ġ{ ĠObservable . just ( Fake Remote DataSource . get Customer Deposit Accounts ()[ 0 ]) Ġ}) ĊĠĠĠ Ġ} Ċ } Ċ