Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Exposing Network Result Status in MVVM
Search
ValentineRutto
April 10, 2021
Programming
0
85
Exposing Network Result Status in MVVM
Different ways to handle network result status in mvvm design achitecture
ValentineRutto
April 10, 2021
Tweet
Share
More Decks by ValentineRutto
See All by ValentineRutto
Kickstarting your tech career
valentinerutto
1
48
The D in SOLID Principles
valentinerutto
0
220
Consuming Rest Api with retrofit in Android
valentinerutto
0
240
Complex ui animation with Motion layout
valentinerutto
0
110
Tech Opportunities
valentinerutto
1
99
Network_Security_in_Android.pdf
valentinerutto
0
66
Android paging library
valentinerutto
0
260
Android Room persistence library
valentinerutto
0
160
UI/UX FOR MOBILE
valentinerutto
0
260
Other Decks in Programming
See All in Programming
TestingOsaka6_Ozono
o3
0
260
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
940
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.5k
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
230
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
310
SQL Server 2025 LT
odashinsuke
0
120
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
640
Implementation Patterns
denyspoltorak
0
140
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
430
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
160
Go コードベースの構成と AI コンテキスト定義
andpad
0
150
ゆくKotlin くるRust
exoego
1
190
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Believing is Seeing
oripsolob
0
19
What does AI have to do with Human Rights?
axbom
PRO
0
1.9k
BBQ
matthewcrist
89
9.9k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
0
51
Site-Speed That Sticks
csswizardry
13
1k
Design in an AI World
tapps
0
110
Rails Girls Zürich Keynote
gr2m
95
14k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
81
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
66
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
46
Documentation Writing (for coders)
carmenintech
77
5.2k
Transcript
@ValentineRutto, Android Engineer Exposing Network result state in MVVM
ValentineRutto Android Engineer-@Dlight Twitter | Linkedin | Medium | Github
| Instagram @valentinerutto
• Model - business logic • View - consists of
ui code • Viewmodel- bridge between model and view What is MVVM Architecture?
Structure? Image from blog.mindorks
• Loading • Success • Error :- Server Error, Network
Error, Unknown Error. Network Status?
• 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:
Resources Guide to app architecture by developer.android.com Network Response Adapter
libray by harold
Demo Github Code https://github.com/valentineRutto/ricknmorty
Thank You Twitter | Linkedin | Medium | Github @valentinerutto