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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ValentineRutto
April 10, 2021
Programming
100
0
Share
Exposing Network Result Status in MVVM
Different ways to handle network result status in mvvm design achitecture
ValentineRutto
April 10, 2021
More Decks by ValentineRutto
See All by ValentineRutto
Kickstarting your tech career
valentinerutto
1
55
The D in SOLID Principles
valentinerutto
0
230
Consuming Rest Api with retrofit in Android
valentinerutto
0
240
Complex ui animation with Motion layout
valentinerutto
0
110
Tech Opportunities
valentinerutto
1
110
Network_Security_in_Android.pdf
valentinerutto
0
72
Android paging library
valentinerutto
0
270
Android Room persistence library
valentinerutto
0
170
UI/UX FOR MOBILE
valentinerutto
0
270
Other Decks in Programming
See All in Programming
Kingdom of the Machine
yui_knk
2
1.3k
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
960
10 Tips of AWS ~Gen AI on AWS~
licux
5
520
Don't Prompt Harder, Structure Better
kitasuke
0
800
Vibe NLP for Applied NLP
inesmontani
PRO
0
570
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
2
240
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
950
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
160
의존성 주입과 모듈화
fornewid
0
160
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
270
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
130
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.5k
Featured
See All Featured
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Documentation Writing (for coders)
carmenintech
77
5.3k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
340
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
Typedesign – Prime Four
hannesfritz
42
3k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
380
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