https://kotlinlang.org logo
#announcements
Title
# announcements
l

louiscad

09/08/2017, 10:35 PM
Hi, since Kotlin is type strict, Call<Void> should not work in retrofit2. Will Call<Unit> work?
d

diesieben07

09/08/2017, 11:33 PM
Why not?
Call<Void>
compiles to the same in kotlin and java.
g

gildor

09/10/2017, 1:14 PM
You need custom type adapter for Gson, that deserializes Unit to Unit instance instead of null
2 Views