Class PatchListService
java.lang.Object
com.github.thedeathlycow.thermoo.impl.compat.PatchListService
-
Method Summary
Modifier and TypeMethodDescriptionstatic PatchListfetchPatchList(HttpClient client, URI uri) Fetches the Thermoo Patches patch list from the given URI.
-
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 clienturi- 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 interruptedIOException- Thrown if I/O error occurs while sending/receiving data, or if the response is not OK.
-