Package io.github.cobas91.lol.client
Class ItemDownloader
java.lang.Object
io.github.cobas91.util.RiotApiHttpClient
io.github.cobas91.lol.client.ItemDownloader
-
Field Summary
Fields inherited from class io.github.cobas91.util.RiotApiHttpClient
httpClient, log, mapper
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
downloadItemSplash
(Integer itemId) Downloads the splash image of a League of Legends item.Retrieves all items from the League of Legends API.Methods inherited from class io.github.cobas91.util.RiotApiHttpClient
getForUri, sendRequest
-
Method Details
-
getAllItems
Retrieves all items from the League of Legends API.- Returns:
- a List of Item objects representing the items in the game
-
downloadItemSplash
Downloads the splash image of a League of Legends item.- Parameters:
itemId
- the ID of the item- Returns:
- the byte array representing the downloaded image
-