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

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

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

import java.util.Map;

import com.robrua.orianna.type.api.ParamsBuilder;
import com.robrua.orianna.type.dto.match.MatchDetail;

public abstract class MatchAPI {
    /**
     * @param ID
     *            the ID of the match to look up
     * @return the match
     * @see Riot
     *      API Specification
     */
    public static MatchDetail getMatch(final long ID) {
        final String request = BaseRiotAPI.API_VERSIONS.get("match") + "/match/" + ID;
        final Map params = new ParamsBuilder().add("includeTimeline", true).build();
        return BaseRiotAPI.GSON.fromJson(BaseRiotAPI.get(request, params, false), MatchDetail.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy