Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   package com.robrua.orianna.api.core;
   
   import java.util.Collection;
   import java.util.List;
   import java.util.Map;
   
Accesses the LoL REST API and provides results in easy-to-use Java objects.

Author(s):
Rob Rua (FatalElement - NA) (robrua@alumni.cmu.edu)
  
  public abstract class RiotAPI {
      static LoadPolicy loadPolicy = .;
      static DataStore store = new Cache();

    

Parameters:
queueType the ranked queue type to get the challenger league of
Returns:
the challenger league
  
      public static League getChallenger(final QueueType queueType) {
          return LeagueAPI.getChallenger(queueType);
      }

    

Parameters:
ID the ID of the champion to get
Returns:
the champion
  
      public static Champion getChampion(final long ID) {
          return StaticDataAPI.getChampion(ID);
      }

    

Parameters:
name the name of the champion to get
Returns:
the champion
  
      public synchronized static Champion getChampion(final String name) {
          return StaticDataAPI.getChampion(name);
      }

    

Returns:
all the champions
  
      public static List<ChampiongetChampions() {
          return StaticDataAPI.getChampions();
      }

    

Parameters:
IDs the IDs of the champions to get
Returns:
the champions
  
      public static List<ChampiongetChampions(final List<LongIDs) {
          return StaticDataAPI.getChampions(IDs);
      }

    

Parameters:
IDs the IDs of the champions to get
Returns:
the champions
  
      public static List<ChampiongetChampions(final long... IDs) {
          return StaticDataAPI.getChampions(IDs);
     }

    

Parameters:
champion the champion to get status for
Returns:
the champion's status
 
     public static ChampionStatus getChampionStatus(final Champion champion) {
         return ChampionAPI.getChampionStatus(champion);
     }

    

Parameters:
ID the ID of the champion to get status for
Returns:
the champion's status
 
     public static ChampionStatus getChampionStatus(final long ID) {
         return ChampionAPI.getChampionStatus(ID);
     }

    

Returns:
all champion's statuses
 
     public static Map<ChampionChampionStatusgetChampionStatuses() {
         return ChampionAPI.getChampionStatuses();
     }

    

Parameters:
freeToPlay whether to only get free to play champions
Returns:
all (possibly only free to play) champion's statuses
 
     public static Map<ChampionChampionStatusgetChampionStatuses(final boolean freeToPlay) {
         return ChampionAPI.getChampionStatuses(freeToPlay);
     }

    

Parameters:
IDs the IDs of the champions to get statuses for
Returns:
the champions' statuses
 
     public static List<ChampionStatusgetChampionStatuses(final List<LongIDs) {
         return ChampionAPI.getChampionStatuses(IDs);
     }

    

Parameters:
IDs the IDs of the champions to get statuses for
Returns:
the champions' statuses
 
     public static List<ChampionStatusgetChampionStatuses(final long... IDs) {
         return ChampionAPI.getChampionStatuses(IDs);
     }

    

Parameters:
summonerID the ID of the summoner to get current game for
Returns:
the summoner's current game or null if they aren't in one
 
     public static CurrentGame getCurrentGame(final long summonerID) {
         return CurrentGameAPI.getCurrentGame(summonerID);
     }

    

Parameters:
summonerName the name of the summoner to get current game for
Returns:
the summoner's current game or null if they aren't in one
 
     public static CurrentGame getCurrentGame(final String summonerName) {
         return CurrentGameAPI.getCurrentGame(summonerName);
     }

    

Parameters:
summoner the summoner to get current game for
Returns:
the summoner's current game or null if they aren't in one
 
     public static CurrentGame getCurrentGame(final Summoner summoner) {
         return CurrentGameAPI.getCurrentGame(summoner);
     }

    
Gets a rate limiter for the default development rate limit

Returns:
default development rate limiter
 
     public static RateLimiter getDefaultDevelopmentRateLimiter() {
         return new MultiRateLimiter(new RateLimit(10, 10), new RateLimit(500, 600));
     }

    

Returns:
the current featured games
 
     public static List<CurrentGamegetFeaturedGames() {
         return FeaturedGamesAPI.getFeaturedGames();
     }

    

Parameters:
ID the ID of the item to get
Returns:
the item
 
     public static Item getItem(final long ID) {
         return StaticDataAPI.getItem(ID);
     }

    

Returns:
all the items
 
     public static List<ItemgetItems() {
         return StaticDataAPI.getItems();
     }

    

Parameters:
IDs the IDs of the items to get
Returns:
the items
 
     public static List<ItemgetItems(final List<LongIDs) {
         return StaticDataAPI.getItems(IDs);
     }

    

Parameters:
IDs the IDs of the items to get
Returns:
the items
 
     public static List<ItemgetItems(final long... IDs) {
         return StaticDataAPI.getItems(IDs);
     }

    

Returns:
the languages
 
     public static List<StringgetLanguages() {
         return StaticDataAPI.getLanguages();
     }

    

Returns:
the language strings
 
     public static Map<StringStringgetLanguageStrings() {
         return StaticDataAPI.getLanguageStrings();
     }

    

Parameters:
summoners the summoners to get league entries for
Returns:
the summoners' league entries
 
     public static List<List<League>> getLeagueEntriesBySummoner(final List<Summonersummoners) {
         return LeagueAPI.getLeagueEntriesBySummoner(summoners);
     }

    

Parameters:
summoners the summoners to get league entries for
Returns:
the summoners' league entries
 
     public static List<List<League>> getLeagueEntriesBySummoner(final Summoner... summoners) {
         return LeagueAPI.getLeagueEntriesBySummoner(summoners);
     }

    

Parameters:
summoner the summoner to get league entries for
Returns:
the summoner's league entries
 
     public static List<LeaguegetLeagueEntriesBySummoner(final Summoner summoner) {
         return LeagueAPI.getLeagueEntriesBySummoner(summoner);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get league entries for
Returns:
the summoners' league entries
 
     public static List<List<League>> getLeagueEntriesBySummonerID(final List<LongsummonerIDs) {
         return LeagueAPI.getLeagueEntriesBySummonerID(summonerIDs);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get league entries for
Returns:
the summoners' league entries
 
     public static List<List<League>> getLeagueEntriesBySummonerID(final long... summonerIDs) {
         return LeagueAPI.getLeagueEntriesBySummonerID(summonerIDs);
     }

    

Parameters:
summonerID the ID of the summoner to get league entries for
Returns:
the summoner's league entries
 
     public static List<LeaguegetLeagueEntriesBySummonerID(final long summonerID) {
         return LeagueAPI.getLeagueEntriesBySummonerID(summonerID);
     }

    

Parameters:
summonerNames the names of the summoners to get league entries for
Returns:
the summoners' league entries
 
     public static List<List<League>> getLeagueEntriesBySummonerName(final List<StringsummonerNames) {
         return LeagueAPI.getLeagueEntriesBySummonerName(summonerNames);
     }

    

Parameters:
summonerNames the names of the summoners to get league entries for
Returns:
the summoners' league entries
 
     public static List<List<League>> getLeagueEntriesBySummonerName(final String... summonerNames) {
         return LeagueAPI.getLeagueEntriesBySummonerName(summonerNames);
     }

    

Parameters:
summonerName the name of the summoner to get league entries for
Returns:
the summoner's league entries
 
     public static List<LeaguegetLeagueEntriesBySummonerName(final String summonerName) {
         return LeagueAPI.getLeagueEntriesBySummonerName(summonerName);
     }

    

Parameters:
teams the teams to get league entries for
Returns:
the teams' league entries
 
     public static List<List<League>> getLeagueEntriesByTeam(final List<Teamteams) {
         return LeagueAPI.getLeagueEntriesByTeam(teams);
     }

    

Parameters:
teams the teams to get league entries for
Returns:
the teams' league entries
 
     public static List<List<League>> getLeagueEntriesByTeam(final Team... teams) {
         return LeagueAPI.getLeagueEntriesByTeam(teams);
     }

    

Parameters:
team the team to get league entries for
Returns:
the team's league entries
 
     public static List<LeaguegetLeagueEntriesByTeam(final Team team) {
         return LeagueAPI.getLeagueEntriesByTeam(team);
     }

    

Parameters:
teamIDs the IDs of the teams to get league entries for
Returns:
the teams' league entries
 
     public static List<List<League>> getLeagueEntriesByTeamID(final List<StringteamIDs) {
         return LeagueAPI.getLeagueEntriesByTeamID(teamIDs);
     }

    

Parameters:
teamIDs the IDs of the teams to get league entries for
Returns:
the teams' league entries
 
     public static List<List<League>> getLeagueEntriesByTeamID(final String... teamIDs) {
         return LeagueAPI.getLeagueEntriesByTeamID(teamIDs);
     }

    

Parameters:
teamID the ID of the team to get league entries for
Returns:
the team's league entries
 
     public static List<LeaguegetLeagueEntriesByTeamID(final String teamID) {
         return LeagueAPI.getLeagueEntriesByTeamID(teamID);
     }

    

Parameters:
summoners the summoners to get leagues for
Returns:
the summoners' leagues
 
     public static List<List<League>> getLeaguesBySummoner(final List<Summonersummoners) {
         return LeagueAPI.getLeaguesBySummoner(summoners);
     }

    

Parameters:
summoners the summoners to get leagues for
Returns:
the summoners' leagues
 
     public static List<List<League>> getLeaguesBySummoner(final Summoner... summoners) {
         return LeagueAPI.getLeaguesBySummoner(summoners);
     }

    

Parameters:
summoner the summoner to get leagues for
Returns:
the summoner's leagues
 
     public static List<LeaguegetLeaguesBySummoner(final Summoner summoner) {
         return LeagueAPI.getLeaguesBySummoner(summoner);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get leagues for
Returns:
the summoners' leagues
 
     public static List<List<League>> getLeaguesBySummonerID(final List<LongsummonerIDs) {
         return LeagueAPI.getLeaguesBySummonerID(summonerIDs);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get leagues for
Returns:
the summoners' leagues
 
     public static List<List<League>> getLeaguesBySummonerID(final long... summonerIDs) {
         return LeagueAPI.getLeaguesBySummonerID(summonerIDs);
     }

    

Parameters:
summonerID the ID of the summoner to get leagues for
Returns:
the summoner's leagues
 
     public static List<LeaguegetLeaguesBySummonerID(final long summonerID) {
         return LeagueAPI.getLeaguesBySummonerID(summonerID);
     }

    

Parameters:
summonerNames the names of the summoners to get leagues for
Returns:
the summoners' leagues
 
     public static List<List<League>> getLeaguesBySummonerName(final List<StringsummonerNames) {
         return LeagueAPI.getLeaguesBySummonerName(summonerNames);
     }

    

Parameters:
summonerNames the names of the summoners to get leagues for
Returns:
the summoners' leagues
 
     public static List<List<League>> getLeaguesBySummonerName(final String... summonerNames) {
         return LeagueAPI.getLeaguesBySummonerName(summonerNames);
     }

    

Parameters:
summonerName the name of the summoner to get leagues for
Returns:
the summoner's leagues
 
     public static List<LeaguegetLeaguesBySummonerName(final String summonerName) {
         return LeagueAPI.getLeaguesBySummonerName(summonerName);
     }

    

Parameters:
teams the teams to get leagues for
Returns:
the teams' leagues
 
     public static List<List<League>> getLeaguesByTeam(final List<Teamteams) {
         return LeagueAPI.getLeaguesByTeam(teams);
     }

    

Parameters:
teams the teams to get leagues for
Returns:
the teams' leagues
 
     public static List<List<League>> getLeaguesByTeam(final Team... teams) {
         return LeagueAPI.getLeaguesByTeam(teams);
     }

    

Parameters:
team the team to get leagues for
Returns:
the team's leagues
 
     public static List<LeaguegetLeaguesByTeam(final Team team) {
         return LeagueAPI.getLeaguesByTeam(team);
     }

    

Parameters:
teamIDs the IDs of the teams to get leagues for
Returns:
the teams' leagues
 
     public static List<List<League>> getLeaguesByTeamID(final List<StringteamIDs) {
         return LeagueAPI.getLeaguesByTeamID(teamIDs);
     }

    

Parameters:
teamIDs the IDs of the teams to get leagues for
Returns:
the teams' leagues
 
     public static List<List<League>> getLeaguesByTeamID(final String... teamIDs) {
         return LeagueAPI.getLeaguesByTeamID(teamIDs);
     }

    

Parameters:
teamID the ID of the team to get leagues for
Returns:
the team's leagues
 
     public static List<LeaguegetLeaguesByTeamID(final String teamID) {
         return LeagueAPI.getLeaguesByTeamID(teamID);
     }

    

Returns:
information for the maps
 
     public static List<MapDetailsgetMapInformation() {
         return StaticDataAPI.getMapInformation();
     }

    

Returns:
all the masteries
 
     public static List<MasterygetMasteries() {
         return StaticDataAPI.getMasteries();
     }

    

Parameters:
IDs the IDs of the masteries to get
Returns:
the masteries
 
     public static List<MasterygetMasteries(final List<LongIDs) {
         return StaticDataAPI.getMasteries(IDs);
     }

    

Parameters:
IDs the IDs of the masteries to get
Returns:
the masteries
 
     public static List<MasterygetMasteries(final long... IDs) {
         return StaticDataAPI.getMasteries(IDs);
     }

    

Parameters:
ID the ID of the mastery to get
Returns:
the mastery
 
     public static Mastery getMastery(final long ID) {
         return StaticDataAPI.getMastery(ID);
     }
 
     public static Mastery getMasteryByID(final long ID) {
         return null;
     }

    

Parameters:
summoners the summoners to get mastery pages for
Returns:
the summoners' mastery pages
 
     public static List<List<MasteryPage>> getMasteryPages(final List<Summonersummoners) {
         return SummonerAPI.getMasteryPages(summoners);
     }

    

Parameters:
summoners the summoners to get mastery pages for
Returns:
the summoners' mastery pages
 
     public static List<List<MasteryPage>> getMasteryPages(final Summoner... summoners) {
         return SummonerAPI.getMasteryPages(summoners);
     }

    

Parameters:
summoner the summoner to get mastery pages for
Returns:
the summoner's mastery pages
 
     public static List<MasteryPagegetMasteryPages(final Summoner summoner) {
         return SummonerAPI.getMasteryPages(summoner);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get mastery pages for
Returns:
the summoners' mastery pages
 
     public static List<List<MasteryPage>> getMasteryPagesByID(final List<LongsummonerIDs) {
         return SummonerAPI.getMasteryPagesByID(summonerIDs);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get mastery pages for
Returns:
the summoners' mastery pages
 
     public static List<List<MasteryPage>> getMasteryPagesByID(final long... summonerIDs) {
         return SummonerAPI.getMasteryPagesByID(summonerIDs);
     }

    

Parameters:
summonerID the ID of the summoner to get mastery pages for
Returns:
the summoner's mastery pages
 
     public static List<MasteryPagegetMasteryPagesByID(final long summonerID) {
         return SummonerAPI.getMasteryPagesByID(summonerID);
     }

    

Parameters:
summonerNames the names of the summoners to get mastery pages for
Returns:
the summoners' mastery pages
 
     public static List<List<MasteryPage>> getMasteryPagesByName(final List<StringsummonerNames) {
         return SummonerAPI.getMasteryPagesByName(summonerNames);
     }

    

Parameters:
summonerNames the names of the summoners to get mastery pages for
Returns:
the summoners' mastery pages
 
     public static List<List<MasteryPage>> getMasteryPagesByName(final String... summonerNames) {
         return SummonerAPI.getMasteryPagesByName(summonerNames);
     }

    

Parameters:
summonerName the name of the summoner to get mastery pages for
Returns:
the summoner's mastery pages
 
     public static List<MasteryPagegetMasteryPagesByName(final String summonerName) {
         return SummonerAPI.getMasteryPagesByName(summonerName);
     }

    

Parameters:
ID the ID of the match to get
Returns:
the match
 
     public static Match getMatch(final long ID) {
         return MatchAPI.getMatch(ID);
     }

    

Parameters:
summonerID the summoner to get match history for
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerID) {
         return MatchHistoryAPI.getMatchHistory(summonerID);
     }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndex) {
         return MatchHistoryAPI.getMatchHistory(summonerIDbeginIndex);
     }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
championIDs the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndexfinal List<LongchampionIDs) {
         return MatchHistoryAPI.getMatchHistory(summonerIDbeginIndexchampionIDs);
     }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndexfinal QueueType queueType) {
         return MatchHistoryAPI.getMatchHistory(summonerIDbeginIndexqueueType);
     }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndexfinal QueueType queueTypefinal List<LongchampionIDs) {
         return MatchHistoryAPI.getMatchHistory(summonerIDbeginIndexqueueTypechampionIDs);
     }

    

Parameters:
summonerID the summoner to get match history for
championIDs the champions to limit games to
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal List<LongchampionIDs) {
         return MatchHistoryAPI.getMatchHistory(summonerIDchampionIDs);
     }

    

Parameters:
summonerID the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal QueueType queueType) {
         return MatchHistoryAPI.getMatchHistory(summonerIDqueueType);
     }

    

Parameters:
summonerID the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal QueueType queueTypefinal List<LongchampionIDs) {
         return MatchHistoryAPI.getMatchHistory(summonerIDqueueTypechampionIDs);
     }

    

Parameters:
summoner the summoner to get match history for
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summoner) {
         return MatchHistoryAPI.getMatchHistory(summoner);
     }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndex) {
         return MatchHistoryAPI.getMatchHistory(summonerbeginIndex);
     }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
champions the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndexfinal List<Championchampions) {
         return MatchHistoryAPI.getMatchHistory(summonerbeginIndexchampions);
     }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndexfinal QueueType queueType) {
         return MatchHistoryAPI.getMatchHistory(summonerbeginIndexqueueType);
     }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
champions the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndexfinal QueueType queueTypefinal List<Championchampions) {
         return MatchHistoryAPI.getMatchHistory(summonerbeginIndexqueueTypechampions);
     }

    

Parameters:
summoner the summoner to get match history for
champions the champions to limit games to
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal List<Championchampions) {
         return MatchHistoryAPI.getMatchHistory(summonerchampions);
     }

    

Parameters:
summoner the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal QueueType queueType) {
         return MatchHistoryAPI.getMatchHistory(summonerqueueType);
     }

    

Parameters:
summoner the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
champions the champions to limit games to
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal QueueType queueTypefinal List<Championchampions) {
         return MatchHistoryAPI.getMatchHistory(summonerqueueTypechampions);
     }

    

Parameters:
summonerID the summoner to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final long summonerID) {
         return StatsAPI.getRankedStats(summonerID);
     }

    

Parameters:
summonerID the summoner to get ranked stats for
season the season to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final long summonerIDfinal Season season) {
         return StatsAPI.getRankedStats(summonerIDseason);
     }

    

Parameters:
summoner the summoner to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final Summoner summoner) {
         return StatsAPI.getRankedStats(summoner);
     }

    

Parameters:
summoner the summoner to get ranked stats for
season the season to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final Summoner summonerfinal Season season) {
         return StatsAPI.getRankedStats(summonerseason);
     }

    

Returns:
the realm
 
     public static Realm getRealm() {
         return StaticDataAPI.getRealm();
     }

    

Parameters:
summonerID the ID of the summoner to get recent games for
Returns:
the summoner's recent games
 
     public static List<GamegetRecentGames(final long summonerID) {
         return GameAPI.getRecentGames(summonerID);
     }

    

Parameters:
summonerName the name of the summoner to get recent games for
Returns:
the summoner's recent games
 
     public static List<GamegetRecentGames(final String summonerName) {
         return GameAPI.getRecentGames(summonerName);
     }

    

Parameters:
summoner the summoner to get recent games for
Returns:
the summoner's recent games
 
     public static List<GamegetRecentGames(final Summoner summoner) {
         return GameAPI.getRecentGames(summoner);
     }

    

Parameters:
ID the ID of the rune to get
Returns:
the rune
 
     public static Rune getRune(final long ID) {
         return StaticDataAPI.getRune(ID);
     }
 
     public static Rune getRuneByID(final long ID) {
         return null;
     }

    

Parameters:
summoners the summoners to get rune pages for
Returns:
the summoners' rune pages
 
     public static List<List<RunePage>> getRunePages(final List<Summonersummoners) {
         return SummonerAPI.getRunePages(summoners);
     }

    

Parameters:
summoners the summoners to get rune pages for
Returns:
the summoners' rune pages
 
     public static List<List<RunePage>> getRunePages(final Summoner... summoners) {
         return SummonerAPI.getRunePages(summoners);
     }

    

Parameters:
summoner the summoner to get rune pages for
Returns:
the summoner's rune pages
 
     public static List<RunePagegetRunePages(final Summoner summoner) {
         return SummonerAPI.getRunePages(summoner);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get rune pages for
Returns:
the summoners' rune pages
 
     public static List<List<RunePage>> getRunePagesByID(final List<LongsummonerIDs) {
         return SummonerAPI.getRunePagesByID(summonerIDs);
     }

    

Parameters:
summonerIDs the IDs of the summoners to get rune pages for
Returns:
the summoners' rune pages
 
     public static List<List<RunePage>> getRunePagesByID(final long... summonerIDs) {
         return SummonerAPI.getRunePagesByID(summonerIDs);
     }

    

Parameters:
summonerID the ID of the summoner to get rune pages for
Returns:
the summoner's rune pages
 
     public static List<RunePagegetRunePagesByID(final long summonerID) {
         return SummonerAPI.getRunePagesByID(summonerID);
     }

    

Parameters:
summonerNames the names of the summoners to get rune pages for
Returns:
the summoners' rune pages
 
     public static List<List<RunePage>> getRunePagesByName(final List<StringsummonerNames) {
         return SummonerAPI.getRunePagesByName(summonerNames);
     }

    

Parameters:
summonerNames the names of the summoners to get rune pages for
Returns:
the summoners' rune pages
    public static List<List<RunePage>> getRunePagesByName(final String... summonerNames) {
        return SummonerAPI.getRunePagesByName(summonerNames);
    }

    

Parameters:
summonerName the name of the summoner to get rune pages for
Returns:
the summoner's rune pages
    public static List<RunePagegetRunePagesByName(final String summonerName) {
        return SummonerAPI.getRunePagesByName(summonerName);
    }

    

Returns:
all the runes
    public static List<RunegetRunes() {
        return StaticDataAPI.getRunes();
    }

    

Parameters:
IDs the IDs of the runes to get
Returns:
the runes
    public static List<RunegetRunes(final List<LongIDs) {
        return StaticDataAPI.getRunes(IDs);
    }

    

Parameters:
IDs the IDs of the runes to get
Returns:
the runes
    public static List<RunegetRunes(final long... IDs) {
        return StaticDataAPI.getRunes(IDs);
    }

    

Parameters:
region the region to get the shard for
Returns:
the status shard for that region
    public static ShardStatus getShard(final Region region) {
        return StatusAPI.getShard(region);
    }

    

Returns:
the status shard list
    public static List<ShardgetShards() {
        return StatusAPI.getShards();
    }

    

Parameters:
summonerID the summoner to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final long summonerID) {
        return StatsAPI.getStats(summonerID);
    }

    

Parameters:
summonerID the summoner to get stats for
season the season to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final long summonerIDfinal Season season) {
        return StatsAPI.getStats(summonerIDseason);
    }

    

Parameters:
summoner the summoner to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final Summoner summoner) {
        return StatsAPI.getStats(summoner);
    }

    

Parameters:
summoner the summoner to get stats for
season the season to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final Summoner summonerfinal Season season) {
        return StatsAPI.getStats(summonerseason);
    }

    

Parameters:
ID the ID of the summoner to get
Returns:
the summoner
    public static Summoner getSummonerByID(final long ID) {
        return SummonerAPI.getSummonerByID(ID);
    }

    

Parameters:
name the name of the summoner to get
Returns:
the summoners
    public static Summoner getSummonerByName(final String name) {
        return SummonerAPI.getSummonerByName(name);
    }

    

Parameters:
ID the ID of the summoner to get the names of
Returns:
the summoner's name
    public static String getSummonerName(final long ID) {
        return SummonerAPI.getSummonerName(ID);
    }

    

Parameters:
IDs the IDs of the summoners to get
Returns:
the summoners
    public static List<SummonergetSummonersByID(final List<LongIDs) {
        return SummonerAPI.getSummonersByID(IDs);
    }

    

Parameters:
IDs the IDs of the summoners to get
Returns:
the summoners
    public static List<SummonergetSummonersByID(final long... IDs) {
        return SummonerAPI.getSummonersByID(IDs);
    }

    

Parameters:
names the names of the summoners to get
Returns:
the summoners
    public static List<SummonergetSummonersByName(final List<Stringnames) {
        return SummonerAPI.getSummonersByName(names);
    }

    

Parameters:
names the names of the summoners to get
Returns:
the summoners
    public static List<SummonergetSummonersByName(final String... names) {
        return SummonerAPI.getSummonersByName(names);
    }

    

Parameters:
IDs the IDs of the summoners to get the names of
Returns:
the summoners' names
    public static List<StringgetSummonersNames(final List<LongIDs) {
        return SummonerAPI.getSummonersNames(IDs);
    }

    

Parameters:
IDs the IDs of the summoners to get the names of
Returns:
the summoners' names
    public static List<StringgetSummonersNames(final long... IDs) {
        return SummonerAPI.getSummonersNames(IDs);
    }

    

Parameters:
ID the ID of the summoner spell to get
Returns:
the summoner spell
    public static SummonerSpell getSummonerSpell(final long ID) {
        return StaticDataAPI.getSummonerSpell(ID);
    }
    public static SummonerSpell getSummonerSpellByID(final long ID) {
        return null;
    }

    

Returns:
all the summoner spells
    public static List<SummonerSpellgetSummonerSpells() {
        return StaticDataAPI.getSummonerSpells();
    }

    

Parameters:
IDs the IDs of the summoner spells to get
Returns:
the summoner spells
    public static List<SummonerSpellgetSummonerSpells(final List<LongIDs) {
        return StaticDataAPI.getSummonerSpells(IDs);
    }

    

Parameters:
IDs the IDs of the summoner spells to get
Returns:
the summoner spells
    public static List<SummonerSpellgetSummonerSpells(final long... IDs) {
        return StaticDataAPI.getSummonerSpells(IDs);
    }

    

Parameters:
teamID the ID of the team to get
Returns:
the team
    public static Team getTeam(final String teamID) {
        return TeamAPI.getTeam(teamID);
    }
    public static Team getTeamByID(final String ID) {
        return null;
    }

    

Parameters:
teamIDs the IDs of the teams to get
Returns:
the teams
    public static List<TeamgetTeams(final List<StringteamIDs) {
        return TeamAPI.getTeams(teamIDs);
    }

    

Parameters:
teamIDs the IDs of the teams to get
Returns:
the teams
    public static List<TeamgetTeams(final String... teamIDs) {
        return TeamAPI.getTeams(teamIDs);
    }

    

Parameters:
summoners the summoners to get teams for
Returns:
the summoners' teams
    public static List<List<Team>> getTeamsBySummoner(final List<Summonersummoners) {
        return TeamAPI.getTeamsBySummoner(summoners);
    }

    

Parameters:
summoners the summoners to get teams for
Returns:
the summoners' teams
    public static List<List<Team>> getTeamsBySummoner(final Summoner... summoners) {
        return TeamAPI.getTeamsBySummoner(summoners);
    }

    

Parameters:
summoner the summoner to get teams for
Returns:
the summoners' teams
    public static List<TeamgetTeamsBySummoner(final Summoner summoner) {
        return TeamAPI.getTeamsBySummoner(summoner);
    }

    

Parameters:
summonerIDs the IDs of the summoners to get teams for
Returns:
the summoners' teams
    public static List<List<Team>> getTeamsBySummonerID(final List<LongsummonerIDs) {
        return TeamAPI.getTeamsBySummonerID(summonerIDs);
    }

    

Parameters:
summonerIDs the IDs of the summoners to get teams for
Returns:
the summoners' teams
    public static List<List<Team>> getTeamsBySummonerID(final long... summonerIDs) {
        return TeamAPI.getTeamsBySummonerID(summonerIDs);
    }

    

Parameters:
summonerID the ID of the summoner to get teams for
Returns:
the summoner's teams
    public static List<TeamgetTeamsBySummonerID(final long summonerID) {
        return TeamAPI.getTeamsBySummonerID(summonerID);
    }

    

Parameters:
summonerNames the names of the summoners to get teams for
Returns:
the summoners' teams
    public static List<List<Team>> getTeamsBySummonerName(final List<StringsummonerNames) {
        return TeamAPI.getTeamsBySummonerName(summonerNames);
    }

    

Parameters:
summonerNames the names of the summoners to get teams for
Returns:
the summoners' teams
    public static List<List<Team>> getTeamsBySummonerName(final String... summonerNames) {
        return TeamAPI.getTeamsBySummonerName(summonerNames);
    }

    

Parameters:
summonerName the names of the summoner to get teams for
Returns:
the summoner's teams
    public static List<List<Team>> getTeamsBySummonerName(final String summonerName) {
        return TeamAPI.getTeamsBySummonerName(summonerName);
    }

    

Returns:
the versions
    public static List<StringgetVersions() {
        return StaticDataAPI.getVersions();
    }

    
If turned on, prints the URI of calls made to stdout

Parameters:
on whether to print the URI of calls to stdout
    public static void printCalls(final boolean on) {
        BaseRiotAPI.printCalls(on);
    }

    
Removes any set proxy
    public static void removeProxy() {
        BaseRiotAPI.removeProxy();
    }

    
Sets the API Key to use for queries

Parameters:
newAPIKey the API Key to use for queries
    public static void setAPIKey(final String newAPIKey) {
        BaseRiotAPI.setAPIKey(newAPIKey);
    }

    
Sets the data store to use for caching

Parameters:
newStore the data store to use for caching
    public static void setDataStore(final DataStore newStore) {
         = newStore;
    }

    
Sets the load policy for the API

Parameters:
policy the new load policy
    public static void setLoadPolicy(final LoadPolicy policy) {
         = policy;
    }

    
Sets the server mirror to hit for queries

Parameters:
newMirror the server mirror to hit for queries
    public static void setMirror(final Region newMirror) {
        BaseRiotAPI.setMirror(newMirror);
    }

    
Sets the proxy to access the API through

Parameters:
IP the IP address of the proxy server
port the working port for the proxy server
    public static void setProxy(final String IPfinal int port) {
        BaseRiotAPI.setProxy(IPport);
    }

    
Sets multiple new rate limits for the API, removing any old ones

Parameters:
limits the rate limits to apply
    public static void setRateLimit(final Collection<RateLimitlimits) {
        BaseRiotAPI.setRateLimit(limits);
    }

    
Sets a new rate limit for the API, removing any old ones

Parameters:
callsPerEpoch the number of calls allowed in each epoch
secondsPerEpoch the number of seconds in each epoch
    public static void setRateLimit(final int callsPerEpochfinal int secondsPerEpoch) {
        BaseRiotAPI.setRateLimit(callsPerEpochsecondsPerEpoch);
    }

    
Sets a new rate limit for the API, removing any old ones

Parameters:
limit the new rate limit
    public static void setRateLimit(final RateLimit limit) {
        BaseRiotAPI.setRateLimit(limit);
    }

    
Sets multiple new rate limits for the API, removing any old ones

Parameters:
limits the rate limits to apply
    public static void setRateLimit(final RateLimit... limits) {
        BaseRiotAPI.setRateLimit(limits);
    }

    
Sets the region to get information from the API for

Parameters:
newRegion the region to get information from the API for
    public static void setRegion(final Region newRegion) {
        BaseRiotAPI.setRegion(newRegion);
    }
New to GrepCode? Check out our FAQ X