Ernestas
05/21/2021, 1:57 PMAlexander af Trolle
05/21/2021, 2:02 PMErnestas
05/21/2021, 2:04 PMAlexander af Trolle
05/21/2021, 2:17 PMResponse<ResponseBody>
https://stackoverflow.com/questions/33030137/retrofit-2-0b2-how-to-get-inputstream-from-the-response
Then you'll pipe the stream into a serialiser like Gson or Moshi to parse out objects. Then I would store each object into Room or SQLDelight and do pagination from that.
This article looks promising for the serialization.
https://www.amitph.com/java-parse-large-json-files/Ernestas
05/21/2021, 2:22 PMVitaliy Zarubin
05/21/2021, 2:32 PMAlexander af Trolle
05/21/2021, 2:49 PM