I typically use retrofit + moshi to get easily consumable models. The api I'm using has 1 network call that doesn't fit this mold because it responds with a 2.5MB csv.
Should I try to find a converter for retrofiti that can convert from csv to a kotlin class. Or should I try to convert the csv to json, and then just use my typically moshi converter?
g
gildor
12/21/2022, 5:42 AM
If it’s only 1 request and not a whole API layer based on different CSVs, I wouldn’t bother with retrofit adapter and just read it with ResponseBody and parse using any approach which you like (also it may be streaming, if you wish)