Class PatchListService

java.lang.Object
com.github.thedeathlycow.thermoo.impl.compat.PatchListService

public final class PatchListService extends Object
  • Method Details

    • fetchPatchList

      public static PatchList fetchPatchList(HttpClient client, URI uri) throws InterruptedException, IOException
      Fetches the Thermoo Patches patch list from the given URI. This call is blocking and should be executed asynchronously (such as on a virtual thread).
      Parameters:
      client - An active HTTP client
      uri - The URI of the location of the patch list
      Returns:
      Returns the decoded patch list from the URI
      Throws:
      InterruptedException - Thrown if the client is interrupted
      IOException - Thrown if I/O error occurs while sending/receiving data, or if the response is not OK.