public static interface RiotApi.Champion extends RiotApi
RiotApi.StaticData interface.RiotApi.Champion, RiotApi.ChampionMastery, RiotApi.CurrentGame, RiotApi.FeaturedGames, RiotApi.League, RiotApi.LolStatus, RiotApi.Match, RiotApi.MatchList, RiotApi.RateType, RiotApi.RecentGames, RiotApi.StaticData, RiotApi.Stats, RiotApi.Summoner, RiotApi.Team| Modifier and Type | Method and Description |
|---|---|
ChampDto |
getChampion(long championId)
/api/lol/{region}/v1.2/champion/{id}
400 Bad request 401 Unauthorized 429 Rate limit exceeded 500 Internal server error 503 Service unavailable |
ChampListDto |
getChampions(boolean freeToPlay)
/api/lol/{region}/v1.2/champion
400 Bad request 401 Unauthorized 429 Rate limit exceeded 500 Internal server error 503 Service unavailable |
static Region[] |
getSupportedRegions(float version) |
getApiKey, getRateType, getRegion, getVersion, setAutoRetry, setPrintUrl, setProxy, setRateControl, setRetryCountstatic Region[] getSupportedRegions(float version)
version - a positive value denoting the version (e.g. 1.2)Regions this API supportsInvalidVersionException - if the version number cannot be mapped to a valid versionChampListDto getChampions(boolean freeToPlay) throws java.io.IOException, HttpException
freeToPlay - fetch only free to play championsChampListDtoHttpException - non 2XX response code returnedjava.io.IOException - some connection error (e.g. server down)ChampDto getChampion(long championId) throws java.io.IOException, HttpException
championId - the champ idChampDto single champion dtoHttpException - non 2XX response code returnedjava.io.IOException - some connection error (e.g. server down)