koraktor / steam-condenser

A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers
https://koraktor.de/steam-condenser
Other
356 stars 67 forks source link

Private constructor for GameLeaderboard #309

Closed Winning117 closed 6 years ago

Winning117 commented 7 years ago

Hello I am very new to this API and using APIs in general but I noticed that in GameLeaderboard.java the GameLeaderboard constructor is private. How can you access the leaderboard if it won't let you pass the XMLData to it?

I have tried this to no avail: XMLData clucklesXML = new XMLData("http://steamcommunity.com/stats/605250/leaderboards/?xml=1"); GameLeaderboard cluckles = new GameLeaderboard(clucklesXML); It says "The constructor GameLeaderboard(XMLData) is not visible"

koraktor commented 7 years ago

You want

GameLeaderboard.getLeaderboards(String gameName)

and

GameLeaderboard.getLeaderboard(String gameName, String name)

There's a reason the constructor is private.