public class StaticDataClient extends AbstractClient
apiKey, BASE_URL, region, service| Constructor and Description |
|---|
StaticDataClient(String apiKey,
Region region) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
get(Class<T> clazz,
String url,
String locale,
String version,
Enum... data) |
protected String |
getBaseUrl() |
Champion |
getChampion(int championId) |
Champion |
getChampion(int championId,
ChampData... champData) |
Champion |
getChampion(int championId,
String locale,
String version,
ChampData... champData)
Retrieve data for a single champion
|
ChampionList |
getChampions() |
ChampionList |
getChampions(ChampData... champData) |
ChampionList |
getChampions(String locale,
String version,
ChampData... champData)
Retrieve champion list
|
Item |
getItem(int itemId) |
Item |
getItem(int itemId,
ItemData... itemData) |
Item |
getItem(int itemId,
String locale,
String version,
ItemData... itemData)
Retrieve a specific item
|
ItemList |
getItems() |
ItemList |
getItems(ItemListData... itemListData) |
ItemList |
getItems(String locale,
String version,
ItemListData... itemListData)
Retrieve an item list
https://developer.riotgames.com/api/methods#!/374/1306
|
MasteryList |
getMasteries() |
MasteryList |
getMasteries(MasteryListData... masteryListData) |
MasteryList |
getMasteries(String locale,
String version,
MasteryListData... masteryListData)
Retrieve a list of items
|
Mastery |
getMastery(int masteryId) |
Mastery |
getMastery(int masteryId,
MasteryData... masteryData) |
Mastery |
getMastery(int masteryId,
String locale,
String version,
MasteryData... masteryData) |
protected com.sun.jersey.core.util.MultivaluedMapImpl |
getParams(String locale,
String version,
Enum... data) |
Realm |
getRealm()
Retrieve realm data
|
Rune |
getRune(int runeId) |
Rune |
getRune(int runeId,
RuneData... runeData) |
Rune |
getRune(int runeId,
String locale,
String version,
RuneData... runeData) |
RuneList |
getRunes() |
RuneList |
getRunes(RuneListData... runeListData) |
RuneList |
getRunes(String locale,
String version,
RuneListData... runeListData)
Retrieve rune list
|
SummonerSpell |
getSummonerSpell(String spellId) |
SummonerSpell |
getSummonerSpell(String spellId,
SpellData... spellData) |
SummonerSpell |
getSummonerSpell(String spellId,
String locale,
String version,
SpellData... spellData)
Retrieve a specific summoner spell
|
SummonerSpellList |
getSummonerSpells() |
SummonerSpellList |
getSummonerSpells(SpellData... spellData) |
SummonerSpellList |
getSummonerSpells(String locale,
String version,
SpellData... spellData)
Retrieve all summoner spells
|
protected String |
getVersion() |
commaDelimit, commaDelimit, delete, get, get, getRegion, post, put, request, request, request, setRegionprotected String getVersion()
getVersion in class AbstractClientprotected String getBaseUrl()
getBaseUrl in class AbstractClientpublic ChampionList getChampions()
public ChampionList getChampions(ChampData... champData)
public ChampionList getChampions(String locale, String version, ChampData... champData)
locale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned datachampData - tags to return additional datapublic Champion getChampion(int championId)
public Champion getChampion(int championId, String locale, String version, ChampData... champData)
championId - the id of the desired championlocale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned datachampData - tags to return additional datapublic ItemList getItems()
public ItemList getItems(ItemListData... itemListData)
public ItemList getItems(String locale, String version, ItemListData... itemListData)
locale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned dataitemListData - tags to return additional datapublic Item getItem(int itemId)
public Item getItem(int itemId, String locale, String version, ItemData... itemData)
itemId - the id of the desired itemlocale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned dataitemData - tags to return additional datapublic MasteryList getMasteries()
public MasteryList getMasteries(MasteryListData... masteryListData)
public MasteryList getMasteries(String locale, String version, MasteryListData... masteryListData)
locale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned datamasteryListData - tags to return additional datapublic Mastery getMastery(int masteryId)
public Mastery getMastery(int masteryId, MasteryData... masteryData)
public Mastery getMastery(int masteryId, String locale, String version, MasteryData... masteryData)
masteryId - the id of the desired masterylocale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned datamasteryData - tags to return additional datapublic Realm getRealm()
public RuneList getRunes()
public RuneList getRunes(RuneListData... runeListData)
public RuneList getRunes(String locale, String version, RuneListData... runeListData)
locale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned dataruneListData - tags to return additional datapublic Rune getRune(int runeId)
public Rune getRune(int runeId, String locale, String version, RuneData... runeData)
runeId - the id of the desired runelocale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned dataruneData - tags to return additional datapublic SummonerSpellList getSummonerSpells()
public SummonerSpellList getSummonerSpells(SpellData... spellData)
public SummonerSpellList getSummonerSpells(String locale, String version, SpellData... spellData)
locale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned dataspellData - tags to return additional datapublic SummonerSpell getSummonerSpell(String spellId)
public SummonerSpell getSummonerSpell(String spellId, SpellData... spellData)
public SummonerSpell getSummonerSpell(String spellId, String locale, String version, SpellData... spellData)
spellId - the id (name) of the desired spelllocale - locale code for returned data (en_US, es_ES, etc.)version - data dragon version for returned dataspellData - tags to return additional dataCopyright © 2014. All rights reserved.