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
98
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
アーキテクチャモダナイゼーションとは何か
nwiizo
19
5.4k
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
Running Swift without an OS
kishikawakatsumi
0
850
事業会社でのセキュリティ長期インターンについて
masachikaura
0
270
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
720
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
610
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
240
感情を設計する
ichimichi
5
1.6k
AWS re:Invent 2025の少し振り返り + DevOps AgentとBacklogを連携させてみた
satoshi256kbyte
3
170
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
180
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
640
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
850
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
450
Designing for Timeless Needs
cassininazir
0
200
The Curse of the Amulet
leimatthew05
1
11k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
Context Engineering - Making Every Token Count
addyosmani
9
840
Exploring anti-patterns in Rails
aemeredith
3
320
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
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