Join Slack
Powered by
I'm working with an api that returns either `{ "da...
# android
z
zachtib
03/04/2019, 1:50 PM
I'm working with an api that returns either
{ "data": { ... } }
or
{ "error": { ... }}
for all of its calls. Are there any examples out there for modeling this using a sealed class w/ Retrofit
d
dangvh
03/04/2019, 3:13 PM
Try retrofit and rxJava
z
zachtib
03/04/2019, 3:15 PM
I'm already using Retrofit, but w/ suspend functions. I was more wondering about mapping to the sealed result class
Open in Slack
Previous
Next