Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.api.dto;
 
 import java.util.Map;
 
 
 public abstract class ChampionAPI {
    

Parameters:
ID the ID of the champion to look up
Returns:
the champion
See also:
Riot API Specification
    public static Champion getChampionStatus(final long ID) {
        final String request = ..get("champion") + "/champion/" + ID;
        return ..fromJson(BaseRiotAPI.get(requestnullfalse), Champion.class);
    }

    

Parameters:
freeToPlay whether to only return free champions
Returns:
all champions
See also:
Riot API Specification
    public static ChampionList getChampionStatuses(final boolean freeToPlay) {
        final String request = ..get("champion") + "/champion";
        final Map<StringStringparams = new ParamsBuilder().add("freeToPlay"freeToPlay).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), ChampionList.class);
    }
New to GrepCode? Check out our FAQ X