Join Slack
Powered by
thanks for your answer, your approach seems better...
# android
b
Bacho Kurtanidze
10/28/2019, 9:56 AM
thanks for your answer, your approach seems better than mine, thing that drove me to post this question was that i needed to indicate models type even when creating loading and error states while data was null
t
Taha
10/28/2019, 9:57 AM
Glad it provided an idea ^^
f
FunkyMuse
10/28/2019, 12:44 PM
https://github.com/CraZyLegenD/Set-Of-Useful-Kotlin-Extensions-and-Helpers/blob/master/kotlinextensions/src/main/java/com/crazylegend/kotlinextensions/retrofit/RetrofitResult.kt
FunkyMuse
10/28/2019, 12:44 PM
Here's how i got it solved, plus i've written several extensions for wrapping and unwrapping the result
Open in Slack
Previous
Next