Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.api.core;
 
 import java.util.List;
 
public abstract class GameAPI {
    

Parameters:
summonerID the ID of the summoner to get recent games for
Returns:
the summoner's recent games
    public static List<GamegetRecentGames(final long summonerID) {
        final List<Gamegames = new ArrayList<>();
        final RecentGames gms = BaseRiotAPI.getRecentGames(summonerID);
        for(final com.robrua.orianna.type.dto.game.Game game : gms.getGames()) {
            games.add(new Game(game));
        }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(gms.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(gms.getChampionIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(gms.getSummonerSpellIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(gms.getSummonerIDs()));
        }
        return Collections.unmodifiableList(games);
    }

    

Parameters:
summonerName the name of the summoner to get recent games for
Returns:
the summoner's recent games
    public static List<GamegetRecentGames(final String summonerName) {
        return getRecentGames(RiotAPI.getSummonerByName(summonerName));
    }

    

Parameters:
summoner the summoner to get recent games for
Returns:
the summoner's recent games
    public static List<GamegetRecentGames(final Summoner summoner) {
        return getRecentGames(summoner.getID());
    }
New to GrepCode? Check out our FAQ X