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;
 
public abstract class TeamAPI {
    

Parameters:
IDs the IDs of the teams
Returns:
the teams
See also:
Riot API Specification
    public static Map<StringTeamgetTeamsByID(final List<StringIDs) {
        if(IDs.size() > 10) {
            throw new IllegalArgumentException("Can only get up to 10 teams at a time!");
        }
        final String request = ..get("team") + "/team/" + Utils.getIDString(IDs);
        final Type type = new TypeToken<Map<StringTeam>>() {}.getType();
        return ..fromJson(BaseRiotAPI.get(requestnullfalse), type);
    }

    

Parameters:
IDs the IDs of the teams
Returns:
the teams
See also:
Riot API Specification
    public static Map<StringTeamgetTeamsByID(final String... IDs) {
        return getTeamsByID(Arrays.asList(IDs));
    }

    

Parameters:
summonerIDs the IDs of the summoners to get teams for
Returns:
the summoners' teams
See also:
Riot API Specification
    public static Map<LongList<Team>> getTeamsBySummoner(final List<LongsummonerIDs) {
        if(summonerIDs.size() > 10) {
            throw new IllegalArgumentException("Can only get teams for up to 10 summoners at a time!");
        }
        final String request = ..get("team") + "/team/by-summoner/" + Utils.getIDString(summonerIDs);
        final Type type = new TypeToken<Map<LongList<Team>>>() {}.getType();
        return ..fromJson(BaseRiotAPI.get(requestnullfalse), type);
    }

    

Parameters:
summonerIDs the IDs of the summoners to get teams for
Returns:
the summoners' teams
See also:
Riot API Specification
    public static Map<LongList<Team>> getTeamsBySummoner(final long... summonerIDs) {
        return getTeamsBySummoner(Utils.convert(summonerIDs));
    }
New to GrepCode? Check out our FAQ X