The point is indeed to cache the platforms. If you search a game by his name, you get the platform Id so for every game, you have to send a request to get the platform name. So as long as I do not have a miss in the database, I don't need to refresh the list.
you obviously shouldn't be caching the the results as is, loading them into some sort of database is the best option.
then you can query the database based on ID, or name without any issues at all.
The library I use is able to generate a gson parser based on the pojo. But in this case, I will have to create one member variable for each platform. But the library is able to parser an array.
Beside that, you have to change your model every time you add a new platform
I dont have much knowledge with pojo, but if im reading this correct, this could simply be solved, by parsing the data, loop through the objects, convert them to array, the do whatever you need to do with that.
now with all that said, I do kind feel it's somewhat pointless having it the way we currently have it, since my ideal approach would be, to cache into some sort of database before trying to use it, and the keys are only there to make it easier to use it, but if it's in a database those keys are absolutely redundant in this case. (I am however, feel under the weather, so ill avoid making any decisions now, but once i do, ill post an update here).
now as for the `ByGame*` endpoint, i think there might be the need for a much bigger discussion about it moving forward.
And last but not least, it will be aligned with the ByGameName method.
I presume you meant `ByPlatformName`, I have noticed the inconstancy, unfortunately that escaped me during launch.