All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.robrua.orianna.api.dto.GameAPI Maven / Gradle / Ivy

There is a newer version: 2.4.5
Show newest version
package com.robrua.orianna.api.dto;

import com.robrua.orianna.type.dto.game.RecentGames;

public abstract class GameAPI {
    /**
     * @param summonerID
     *            the ID of the summoner to look up recent games for
     * @return the summoner's recent games
     * @see Riot
     *      API Specification
     */
    public static RecentGames getRecentGames(final long summonerID) {
        final String request = BaseRiotAPI.API_VERSIONS.get("game") + "/game/by-summoner/" + summonerID + "/recent";
        return BaseRiotAPI.GSON.fromJson(BaseRiotAPI.get(request, null, false), RecentGames.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy