ursus
04/24/2018, 1:28 AMAccountHelper
which exposes observable of AccountState
which is just a data class of AccountState(hasAccountCreated, hasAccountInitialized)
. I also have AccountManager
and which creates account, I could expose that somehow as observable, and account initializer for the other field. My question is, if I were to combineLatest
the accountManager.accountObservable
and accountInitializer.isInitializedObservable
... should I also then proxy the "mutator" methods to the account manager / initializer? I.e. should I hide it all behind AccountHelper
fasade (composition)? (ie. AccountHelper.createAccount()
just proxies to AccountManager.createAccount()
) ....or should I let api consumers deal with specific object (account manager / initializer)