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
97
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
53
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
71
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
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
250
Nuxt Server Components
wattanx
0
270
Vibe NLP for Applied NLP
inesmontani
PRO
0
350
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
1
280
煩雑なSkills管理をSoC(関心の分離)により解決する――関心を分離し、プロンプトを部品として育てるためのOSSを作った話 / Solving Complex Skills Management Through SoC (Separation of Concerns)
nrslib
4
860
Feature Toggle は捨てやすく使おう
gennei
0
560
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
840
飯MCP
yusukebe
0
500
Coding as Prompting Since 2025
ragingwind
0
790
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
180
Don't Prompt Harder, Structure Better
kitasuke
0
690
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
550
Featured
See All Featured
Side Projects
sachag
455
43k
The agentic SEO stack - context over prompts
schlessera
0
740
Building AI with AI
inesmontani
PRO
1
880
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Facilitating Awesome Meetings
lara
57
6.8k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
150
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
110
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
520
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