Package net.runelite.client.hiscore
Class HiscoreManager
- java.lang.Object
-
- net.runelite.client.hiscore.HiscoreManager
-
@Singleton public class HiscoreManager extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HiscoreResult
lookup(String username, HiscoreEndpoint endpoint)
Synchronously look up a players hiscore from a specified endpointHiscoreResult
lookupAsync(String username, HiscoreEndpoint endpoint)
Asynchronously look up a players hiscore from a specified endpoint
-
-
-
Method Detail
-
lookup
public HiscoreResult lookup(String username, HiscoreEndpoint endpoint) throws IOException
Synchronously look up a players hiscore from a specified endpoint- Parameters:
username
- Players usernameendpoint
- Hiscore endpoint- Returns:
- HiscoreResult or null
- Throws:
IOException
- Upon error in fetching hiscore
-
lookupAsync
public HiscoreResult lookupAsync(String username, HiscoreEndpoint endpoint)
Asynchronously look up a players hiscore from a specified endpoint- Parameters:
username
- Players usernameendpoint
- Hiscore endpoint- Returns:
- HiscoreResult or null
-
-