Join Slack
Communities
Powered by
when you called List<Any> on Moshi into Clas...
# kotlin-fuel
i
itnoles
07/08/2019, 3:05 AM
when you called List<Any> on Moshi into Class<T>, it only get List inferace
d
Derk-Jan Karrenbeld
07/08/2019, 10:11 AM
I've explained this before: you
must
use a type token. This has nothing to do with moshi 🙂
i
itnoles
07/08/2019, 3:17 PM
I already fixed the test for that.
itnoles
07/08/2019, 3:18 PM
suspend inline fun <reified T : Any> Request.awaitResponseResultObjects() = awaitResponseResult(moshiDeserializerOf<List<T>>( Types.newParameterizedType(List::class.java, T::class.java))
7
Views
Open in Slack
Previous
Next