etonotieno / GitBit

Fetch user repositories via the GitHub API
https://appetize.io/app/d6vvek3kg7uj3kvrjaedg7rcx4?device=pixel4&osVersion=11.0&scale=75
Apache License 2.0
3 stars 0 forks source link

Wrap Api Calls with Response<T> #2

Open wangerekaharun opened 4 years ago

wangerekaharun commented 4 years ago

https://github.com/etonotieno/GitBit/blob/806efc3c03b85086dbd0e0b0265157f437ad6c25/app/src/main/java/io/devbits/gitbit/data/remote/GithubApiService.kt#L11

This ensures you always get the responses event the HTTP errors