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
49
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
30
The D in SOLID Principles
valentinerutto
0
200
Consuming Rest Api with retrofit in Android
valentinerutto
0
190
Complex ui animation with Motion layout
valentinerutto
0
73
Tech Opportunities
valentinerutto
1
86
Network_Security_in_Android.pdf
valentinerutto
0
46
Android paging library
valentinerutto
0
230
Android Room persistence library
valentinerutto
0
140
UI/UX FOR MOBILE
valentinerutto
0
250
Other Decks in Programming
See All in Programming
What We Can Learn From OSS
inouehi
0
420
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
820
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
170
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
43
19k
Node.js v22 で変わること
yosuke_furukawa
PRO
9
3.1k
Git Rebase
bkuhlmann
11
1.6k
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
920
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
950
GitHub Copilotのススメ
marcy731
1
200
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
170
Featured
See All Featured
In The Pink: A Labor of Love
frogandcode
138
21k
Writing Fast Ruby
sferik
621
60k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
Testing 201, or: Great Expectations
jmmastey
28
6.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
7
1k
Designing for humans not robots
tammielis
248
25k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
Optimizing for Happiness
mojombo
370
69k
Documentation Writing (for coders)
carmenintech
60
3.9k
How GitHub (no longer) Works
holman
304
140k
Code Reviewing Like a Champion
maltzj
514
39k
YesSQL, Process and Tooling at Scale
rocio
164
13k
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