Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.api.dto;
  
  import java.util.Arrays;
  import java.util.HashSet;
  import java.util.List;
  import java.util.Map;
  import java.util.Set;
  
 
 public abstract class MatchHistoryAPI {
     private static final Set<QueueTypeRANKED_QUEUES = new HashSet<>(Arrays.asList(new QueueType[] {..,
             .}));

    
Gets the 15 most recent matches for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
Returns:
the match history for that summoner
See also:
Riot API Specification
 
     public static PlayerHistory getMatchHistory(final long summonerID) {
         final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex", 0).add("endIndex", 15).build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
     }

    
Gets the 15 most recent matches after beginIndex for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
beginIndex the game index to start from
Returns:
the match history for that summoner
See also:
Riot API Specification
 
     public static PlayerHistory getMatchHistory(final long summonerIDfinal int beginIndex) {
         final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 15).build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
     }

    
Gets the 15 most recent matches after beginIndex for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
beginIndex the game index to start from
championIDs the champions to limit games to
Returns:
the match history for that summoner
See also:
Riot API Specification
 
     public static PlayerHistory getMatchHistory(final long summonerIDfinal int beginIndexfinal List<LongchampionIDs) {
         final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 15)
                 .add("championIds", Utils.getIDString(championIDs)).build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
     }

    
Gets the 15 most recent matches after beginIndex for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
Returns:
the match history for that summoner
See also:
Riot API Specification
 
     public static PlayerHistory getMatchHistory(final long summonerIDfinal int beginIndexfinal QueueType queueType) {
         if(!.contains(queueType)) {
             throw new IllegalArgumentException("Can't get challenger for a non-ranked queue type!");
         }
 
         final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 15).add("rankedQueues"queueType)
                 .build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
     }

    
Gets the 15 most recent matches after beginIndex for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the match history for that summoner
See also:
Riot API Specification
    public static PlayerHistory getMatchHistory(final long summonerIDfinal int beginIndexfinal QueueType queueTypefinal List<LongchampionIDs) {
        if(!.contains(queueType)) {
            throw new IllegalArgumentException("Can't get challenger for a non-ranked queue type!");
        }
        final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 15).add("rankedQueues"queueType)
                .add("championIds", Utils.getIDString(championIDs)).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
    }

    
Gets the 15 most recent matches for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
championIDs the champions to limit games to
Returns:
the match history for that summoner
See also:
Riot API Specification
    public static PlayerHistory getMatchHistory(final long summonerIDfinal List<LongchampionIDs) {
        final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("championIds", Utils.getIDString(championIDs)).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
    }

    
Gets the 15 most recent matches for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
Returns:
the match history for that summoner
See also:
Riot API Specification
    public static PlayerHistory getMatchHistory(final long summonerIDfinal QueueType queueType) {
        if(!.contains(queueType)) {
            throw new IllegalArgumentException("Can't get challenger for a non-ranked queue type!");
        }
        final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("rankedQueues"queueType).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
    }

    
Gets the 15 most recent matches for the summoner

Parameters:
summonerID the ID of the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the match history for that summoner
See also:
Riot API Specification
    public static PlayerHistory getMatchHistory(final long summonerIDfinal QueueType queueTypefinal List<LongchampionIDs) {
        if(!.contains(queueType)) {
            throw new IllegalArgumentException("Can't get challenger for a non-ranked queue type!");
        }
        final String request = ..get("matchhistory") + "/matchhistory/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("rankedQueues"queueType).add("championIds", Utils.getIDString(championIDs)).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), PlayerHistory.class);
    }
New to GrepCode? Check out our FAQ X