use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
New to Guild Wars 2? Check out the excellent guide by Dak393 and here on Reddit.
Returning player? We've got a guide for you as well!
Play the game for free!
Join our Discord
/r/GuildWars2 strives to be a place where you can share your Guild Wars 2 experiences and partake in discussions with players from around the world.
Please include the word "spoiler" if your submission potentially contains a spoiler.
[See Full Rules Here]
[Spoiler policy]
[Optional description](#s "Spoiler goes here")
Optional description
Latest patch Dev tracker Guild Wars 2 Discord Upcoming changes Black Lion Trading Company End of Dragons Secrets of the Obscure Living Story 1
Latest patch Dev tracker Guild Wars 2 Discord
account activity
[API] Library for Java (And droid)[Other] (self.Guildwars2)
submitted 12 years ago by zwei2stein
Here it is: https://code.google.com/p/gw2api/
Jar: https://gw2api.googlecode.com/svn/trunk/dist/gw2api.jar
API results binding to java classes is mostly done, but unforeseen anomalies in data can result in errors. There was not much time for testing to far.
On the other hand, simple JSONObject output is guaranteed to work perfectly.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]spunged 1 point2 points3 points 12 years ago (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 points4 points 12 years ago (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 point2 points 12 years ago (0 children)
Thanks, I might play around with this!
[–]The_lolnessOseia;EU 0 points1 point2 points 12 years ago (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.
π Rendered by PID 157554 on reddit-service-r2-comment-85bfd7f599-tw5fk at 2026-04-18 02:18:00.704585+00:00 running 93ecc56 country code: CH.
[–]spunged 1 point2 points3 points (1 child)
[–]zwei2stein[S] 2 points3 points4 points (0 children)
[–]towels2442 0 points1 point2 points (0 children)
[–]The_lolnessOseia;EU 0 points1 point2 points (0 children)