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
59
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
36
The D in SOLID Principles
valentinerutto
0
210
Consuming Rest Api with retrofit in Android
valentinerutto
0
200
Complex ui animation with Motion layout
valentinerutto
0
87
Tech Opportunities
valentinerutto
1
90
Network_Security_in_Android.pdf
valentinerutto
0
48
Android paging library
valentinerutto
0
250
Android Room persistence library
valentinerutto
0
150
UI/UX FOR MOBILE
valentinerutto
0
250
Other Decks in Programming
See All in Programming
【re:Growth 2024】 Aurora DSQL をちゃんと話します!
maroon1st
0
780
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
6
1.4k
Beyond ORM
77web
7
940
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
190
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.7k
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
220
Jakarta EE meets AI
ivargrimstad
0
260
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
190
103 Early Hints
sugi_0000
1
230
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
7
1.3k
php-conference-japan-2024
tasuku43
0
320
Featured
See All Featured
Fireside Chat
paigeccino
34
3.1k
How STYLIGHT went responsive
nonsquared
95
5.2k
Music & Morning Musume
bryan
46
6.2k
Rails Girls Zürich Keynote
gr2m
94
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Embracing the Ebb and Flow
colly
84
4.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Producing Creativity
orderedlist
PRO
341
39k
Gamification - CAS2011
davidbonilla
80
5.1k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Designing for humans not robots
tammielis
250
25k
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