I've an endpoint that provides the current weather using /current.json
and any future day using future_n.json
where n = number of days from today
.
I do not have the ability to change the endpoints and want a list of these responses, so I can display the weather for the whole week. The issue is however, I have to wait for the responses of all of these to display the UI. I'm using the Volley lib to make my JSONRequests.
How should I structure the network calls that's considered best practice? Do I make the calls separately and add each response to a list, to update UI when the last call has been made? Any help is appreciated.