I have one model in my database called Country.
To have all information, I need to call 4 APIs (to get general info, to get currency exchange, to get a flag and to get a photo URL).
I'm thinking what's the best to modify NetworkBoundResource in this case?
Shall I have one NetworkBoundResource for loadCountry() and modify createCall to do multiple calls. Or shall I create 4 different NetworkBoundResource's for every API?
Both approaches don't seem right to me though. What do you reckon?
I have one model in my database called Country. To have all information, I need to call 4 APIs (to get general info, to get currency exchange, to get a flag and to get a photo URL). I'm thinking what's the best to modify NetworkBoundResource in this case? Shall I have one NetworkBoundResource for loadCountry() and modify createCall to do multiple calls. Or shall I create 4 different NetworkBoundResource's for every API?
Both approaches don't seem right to me though. What do you reckon?