Loading, Content & Error pattern to create a consistent way of communication between ViewModel or Presenters and the View(Activities/Fragment/CustomViews) using SingleLiveEvent's.
It converts to observables the upstream type return from domain to provide:
- Boolean onLoading call twice on the begging of the process (true) and the end (false)
- Content of the type defined
- Error in case the process is not successful.
LceErrorViewEntity
is provided as an optional wrapper for the throwable and extra info (Any model and message)
It detach domain and view layer types for the communication, so in case the domain layer return type changes, view layer is not affected.