Package io.github.cobas91.lol.client
Class VersionDownloader
java.lang.Object
io.github.cobas91.util.RiotApiHttpClient
io.github.cobas91.lol.client.VersionDownloader
The VersionDownloader class is responsible for downloading the current version numbers of the game.
It extends the HttpClientImpl class and provides methods to retrieve the current patch.
-
Field Summary
Fields inherited from class io.github.cobas91.util.RiotApiHttpClient
httpClient, log, mapper
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current patch version of the game.String[]
Retrieves the available version numbers of the game.Methods inherited from class io.github.cobas91.util.RiotApiHttpClient
getForUri, sendRequest
-
Method Details
-
getCurrentPatch
Retrieves the current patch version of the game.- Returns:
- The current patch version as a String.
-
getVersionNumbers
Retrieves the available version numbers of the game.- Returns:
- An array of strings representing the available versions.
-