Hi.
I am building a mobile application with this api in which I would like to cache the responses from the movie list requests, in order to show them when the user is offline. After the movies are saved to my local database how can we order them in the same order that they came from the server? There is no problem with the top rated and most popular requests, as we have "vote_average" and "popularity" fields in the response, but how about now playing and upcoming?
Thank you.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on July 12, 2019 at 1:03 AM
Hi @balazs_kozma, if you just want to copy the list order, I would just store their ID and their index position in the array. Otherwise, you can just use the popularity value.