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 StatsAPI {
    

Parameters:
summonerID the ID of the summoner to get ranked stats for
Returns:
the ranked stats for that summoner
See also:
Riot API Specification
    public static RankedStats getRankedStats(final long summonerID) {
        final String request = ..get("stats") + "/stats/by-summoner/" + summonerID + "/ranked";
        return ..fromJson(BaseRiotAPI.get(requestnullfalse), RankedStats.class);
    }

    

Parameters:
summonerID the ID of the summoner to get ranked stats for
season the season to get stats for
Returns:
the ranked stats for that summoner
See also:
Riot API Specification
    public static RankedStats getRankedStats(final long summonerIDfinal Season season) {
        final String request = ..get("stats") + "/stats/by-summoner/" + summonerID + "/ranked";
        final Map<StringStringparams = new ParamsBuilder().add("season"season).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), RankedStats.class);
    }

    

Parameters:
summonerID the ID of the summoner to get stats for
Returns:
the stats for that summoner
See also:
Riot API Specification
    public static PlayerStatsSummaryList getStats(final long summonerID) {
        final String request = ..get("stats") + "/stats/by-summoner/" + summonerID + "/summary";
        return ..fromJson(BaseRiotAPI.get(requestnullfalse), PlayerStatsSummaryList.class);
    }

    

Parameters:
summonerID the ID of the summoner to get stats for
season the season to get stats for
Returns:
the stats for that summoner
See also:
Riot API Specification
    public static PlayerStatsSummaryList getStats(final long summonerIDfinal Season season) {
        final String request = ..get("stats") + "/stats/by-summoner/" + summonerID + "/summary";
        final Map<StringStringparams = new ParamsBuilder().add("season"season).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerStatsSummaryList.class);
    }
New to GrepCode? Check out our FAQ X