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
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
63
The D in SOLID Principles
valentinerutto
0
250
Consuming Rest Api with retrofit in Android
valentinerutto
0
260
Complex ui animation with Motion layout
valentinerutto
0
130
Tech Opportunities
valentinerutto
1
120
Network_Security_in_Android.pdf
valentinerutto
0
78
Android paging library
valentinerutto
0
290
Android Room persistence library
valentinerutto
0
180
UI/UX FOR MOBILE
valentinerutto
0
280
Other Decks in Programming
See All in Programming
Webエンジニアなのにブラウザの仕組みがわからないので、Pythonで自作してみた
tatsuki12
4
830
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
1
1.9k
FastAPI の並行処理モデルを完全に理解する
hoto17296
1
730
Go 1.27 における memory allocation の高速化
andpad
0
280
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
130
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
220
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
750
運用ダッシュボードの設計を誰も教えてくれないのだけどみなさんどうしてるんですか? - チームに監視するという文化を根付かせるための第一歩を踏みたい -
satoshi256kbyte
1
140
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
340
SlackアプリとLambdaの 連携を構築した話
pawn_4_s
1
130
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
250
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
170
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
390
From π to Pie charts
rasagy
0
310
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
280
Color Theory Basics | Prateek | Gurzu
gurzu
0
430
Designing for humans not robots
tammielis
254
26k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
680
Code Reviewing Like a Champion
maltzj
528
40k
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