Join Slack
OK, that makes sense. Am I probably going to be looking at writing some sort of custom response conv...
# android
z
zachtib
03/04/2019, 1:52 PM
OK, that makes sense. Am I probably going to be looking at writing some sort of custom response converter for this, or can one of kotlinx.serialization/Moshi/Gson handle this somewhat automatically?
n
nil2l
03/04/2019, 6:12 PM
You can also use
okhttp.RequestInterceptor
to parse ‘data’ and ‘error’ for all requests.
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by