Class HiscoreManager


  • @Singleton
    public class HiscoreManager
    extends Object
    • 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 username
        endpoint - 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 username
        endpoint - Hiscore endpoint
        Returns:
        HiscoreResult or null