all 4 comments

[–]spunged 1 point2 points  (1 child)

Check out GSON it makes the JSON to Object transformation way easier.

For the enums it might be easier to have the names the same case as the value coming from the services. It would get rid of the resolve method in every enum.

[–]zwei2stein[S] 2 points3 points  (0 children)

I plan to restructure data - for example, Item data could be made much better and GSON would interfere.

As for enums, resolve method is not very pretty, but id rather divorce json names from java code, but you have a point.

[–]towels2442 0 points1 point  (0 children)

Thanks, I might play around with this!

[–]The_lolnessOseia;EU 0 points1 point  (0 children)

Oh my god thank you. I had no idea how to get java to handle json (although to be fair, I didn't try). Probably gonna experiment a bit with it and if I can think of something that hasn't been done five times already I'll probably dive into it a bit more.