pniederw
08/15/2018, 3:58 AMevanchooly
08/15/2018, 11:13 PMFoo<Bar, List<String>>
evanchooly
08/15/2018, 11:14 PMList<String>
just fine but the nested Foo<List<String>>
eludes mejw
08/15/2018, 11:18 PMevanchooly
08/15/2018, 11:20 PMClassName
Foo and I do something like this: foo.parameterizedBy(Boo).plusParamater(listString)evanchooly
08/15/2018, 11:20 PMjw
08/15/2018, 11:20 PMFoo::class.parameterizedBy(List::class.parameterizedBy(String::class))
evanchooly
08/15/2018, 11:24 PMParameterizedTypeName
and I need to add that List<String>
to it.evanchooly
08/15/2018, 11:25 PMFoo<Bar>
+ List<String>
--> Foo<Bar, List<String>>
jw
08/15/2018, 11:28 PMjw
08/15/2018, 11:28 PMjw
08/15/2018, 11:28 PMevanchooly
08/15/2018, 11:30 PMevanchooly
08/15/2018, 11:33 PMClassName.parameterizeBy()
takes a vararg TypeName
which gets me what I want.evanchooly
08/15/2018, 11:34 PMplusParameter()
is a typo so i’ll put together a PR for you.jw
08/15/2018, 11:35 PMevanchooly
08/15/2018, 11:46 PMevanchooly
08/15/2018, 11:46 PMevanchooly
08/16/2018, 12:09 AMFileSpec.addImport()
what’s with the names
parameter? if I have a ClassName
representing a FQCN, why can’t I just pass that in?evanchooly
08/16/2018, 12:09 AMevanchooly
08/16/2018, 12:11 AMjw
08/16/2018, 12:18 AMjw
08/16/2018, 12:18 AMevanchooly
08/16/2018, 12:21 AMjulioyg
08/16/2018, 2:03 PMjw
08/16/2018, 2:10 PMjw
08/16/2018, 2:10 PMUnit
somewhere in your JSON model you should register your own Gson TypeAdapter to handle thatjw
08/16/2018, 2:11 PMUnit
for the body type to prevent calling your serialization converter then you should just copy that into your codebase and register it with Retrofitjulioyg
08/16/2018, 2:18 PMjw
08/16/2018, 2:20 PM