Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.api.dto;
  
  import java.util.List;
  import java.util.Map;
  
  import  com.google.gson.reflect.TypeToken;
 
 public abstract class StaticDataAPI {
    

Parameters:
ID the champion's ID
Returns:
the champion
See also:
Riot API Specification
 
     public static Champion getChampion(final long ID) {
         if(ID == 0) {
             return null;
         }
 
         final String request = ..get("static-data") + "/champion/" + ID;
         final Map<StringStringparams = new ParamsBuilder().add("champData""all").build();
         return ..fromJson(BaseRiotAPI.get(requestparamstrue), Champion.class);
     }

    

Returns:
the list all of champions
See also:
Riot API Specification
 
     public static ChampionList getChampions() {
         final String request = ..get("static-data") + "/champion";
         final Map<StringStringparams = new ParamsBuilder().add("champData""all").build();
         return ..fromJson(BaseRiotAPI.get(requestparamstrue), ChampionList.class);
     }

    

Parameters:
ID the item's ID
Returns:
the item
See also:
Riot API Specification
 
     public static Item getItem(final long ID) {
         final String request = ..get("static-data") + "/item/" + ID;
         final Map<StringStringparams = new ParamsBuilder().add("itemData""all").build();
         return ..fromJson(BaseRiotAPI.get(requestparamstrue), Item.class);
     }

    

Returns:
the list of all items
See also:
Riot API Specification
 
     public static ItemList getItems() {
         final String request = ..get("static-data") + "/item";
         final Map<StringStringparams = new ParamsBuilder().add("itemListData""all").build();
         return ..fromJson(BaseRiotAPI.get(requestparamstrue), ItemList.class);
     }

    

Returns:
the languages
See also:
Riot API Specification
 
     public static List<StringgetLanguages() {
         final String request = ..get("static-data") + "/languages";
         final Type type = new TypeToken<List<String>>() {}.getType();
         return ..fromJson(BaseRiotAPI.get(requestnulltrue), type);
     }

    

Returns:
the language strings
See also:
Riot API Specification
 
     public static LanguageStrings getLanguageStrings() {
         final String request = ..get("static-data") + "/language-strings";
        return ..fromJson(BaseRiotAPI.get(requestnulltrue), LanguageStrings.class);
    }

    

Returns:
the map information
See also:
Riot API Specification
    public static MapData getMapInformation() {
        final String request = ..get("static-data") + "/map";
        return ..fromJson(BaseRiotAPI.get(requestnulltrue), MapData.class);
    }

    

Returns:
the list of all masteries
See also:
Riot API Specification
    public static MasteryList getMasteries() {
        final String request = ..get("static-data") + "/mastery";
        final Map<StringStringparams = new ParamsBuilder().add("masteryListData""all").build();
        return ..fromJson(BaseRiotAPI.get(requestparamstrue), MasteryList.class);
    }

    

Parameters:
ID the mastery's ID
Returns:
the mastery
See also:
Riot API Specification
    public static Mastery getMastery(final long ID) {
        final String request = ..get("static-data") + "/mastery/" + ID;
        final Map<StringStringparams = new ParamsBuilder().add("masteryData""all").build();
        return ..fromJson(BaseRiotAPI.get(requestparamstrue), Mastery.class);
    }

    

Returns:
the realm
See also:
Riot API Specification
    public static Realm getRealm() {
        final String request = ..get("static-data") + "/realm";
        return ..fromJson(BaseRiotAPI.get(requestnulltrue), Realm.class);
    }

    

Parameters:
ID the rune's ID
Returns:
the rune
See also:
Riot API Specification
    public static Rune getRune(final long ID) {
        final String request = ..get("static-data") + "/rune/" + ID;
        final Map<StringStringparams = new ParamsBuilder().add("runeData""all").build();
        return ..fromJson(BaseRiotAPI.get(requestparamstrue), Rune.class);
    }

    

Returns:
the list of all runes
See also:
Riot API Specification
    public static RuneList getRunes() {
        final String request = ..get("static-data") + "/rune";
        final Map<StringStringparams = new ParamsBuilder().add("runeListData""all").build();
        return ..fromJson(BaseRiotAPI.get(requestparamstrue), RuneList.class);
    }

    

Parameters:
ID the summoner spell's ID
Returns:
the summoner spell
See also:
Riot API Specification
    public static SummonerSpell getSummonerSpell(final long ID) {
        final String request = ..get("static-data") + "/summoner-spell/" + ID;
        final Map<StringStringparams = new ParamsBuilder().add("spellData""all").build();
        return ..fromJson(BaseRiotAPI.get(requestparamstrue), SummonerSpell.class);
    }

    

Returns:
the list of all summoner spells
See also:
Riot API Specification
    public static SummonerSpellList getSummonerSpells() {
        final String request = ..get("static-data") + "/summoner-spell";
        final Map<StringStringparams = new ParamsBuilder().add("spellData""all").build();
        return ..fromJson(BaseRiotAPI.get(requestparamstrue), SummonerSpellList.class);
    }

    

Returns:
the versions
See also:
Riot API Specification
    public static List<StringgetVersions() {
        final String request = ..get("static-data") + "/versions";
        final Type type = new TypeToken<List<String>>() {}.getType();
        return ..fromJson(BaseRiotAPI.get(requestnulltrue), type);
    }
New to GrepCode? Check out our FAQ X