Class HiscoreManager


  • @Singleton
    public class HiscoreManager
    extends Object
    • Constructor Detail

      • HiscoreManager

        @Inject
        public HiscoreManager​(ScheduledExecutorService executor,
                              okhttp3.OkHttpClient okHttpClient)
    • Method Detail

      • lookup

        public net.runelite.http.api.hiscore.HiscoreResult lookup​(String username,
                                                                  net.runelite.http.api.hiscore.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 net.runelite.http.api.hiscore.HiscoreResult lookupAsync​(String username,
                                                                       net.runelite.http.api.hiscore.HiscoreEndpoint endpoint)
        Asynchronously look up a players hiscore from a specified endpoint
        Parameters:
        username - Players username
        endpoint - Hiscore endpoint
        Returns:
        HiscoreResult or null