Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Exposing Network Result Status in MVVM

Exposing Network Result Status in MVVM

Different ways to handle network result status in mvvm design achitecture

ValentineRutto

April 10, 2021
Tweet

More Decks by ValentineRutto

Other Decks in Programming

Transcript

  1. • Model - business logic • View - consists of

    ui code • Viewmodel- bridge between model and view What is MVVM Architecture?
  2. • Loading • Success • Error :- Server Error, Network

    Error, Unknown Error. Network Status?
  3. • Resource Class A class that encapsulate both data and

    its state • Using a network response adapter https://haroldadmin.github.io/NetworkResponseAdapter Ways to expose network Status: