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 MatchListAPI {
     private static final Set<QueueTypeRANKED_QUEUES = new HashSet<>(Arrays.asList(new QueueType[] {..,
             .}));

    
Gets the 20 most recent matches for the summoner

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

    
Gets the 20 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 list for that summoner
See also:
Riot API Specification
 
     public static MatchList getMatchList(final long summonerIDfinal int beginIndex) {
         final String request = ..get("matchlist") + "/matchlist/by-summoner/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 20).build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), MatchList.class);
     }

    
Gets the 20 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
beginTime The begin time to use for fetching games specified as epoch milliseconds
Returns:
the match list for that summoner
See also:
Riot API Specification
 
     public static MatchList getMatchList(final long summonerIDfinal int beginIndexfinal long beginTime) {
         final String request = ..get("matchlist") + "/matchlist/by-summoner/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 20).add("beginTime"beginTime)
                 .build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), MatchList.class);
     }

    
Gets the 20 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
beginTime The begin time to use for fetching games specified as epoch milliseconds
endTime The end time to use for fetching games specified as epoch milliseconds
Returns:
the match list for that summoner
See also:
Riot API Specification
 
     public static MatchList getMatchList(final long summonerIDfinal int beginIndexfinal long beginTimefinal long endTime) {
         final String request = ..get("matchlist") + "/matchlist/by-summoner/" + summonerID;
         final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 20).add("beginTime"beginTime)
                 .add("endTime"endTime).build();
         return ..fromJson(BaseRiotAPI.get(requestparamsfalse), MatchList.class);
     }

    
Gets the 20 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
beginTime The begin time to use for fetching games specified as epoch milliseconds
endTime The end time to use for fetching games specified as epoch milliseconds
queueTypes the queue types to limit games to (only ranked queues)
Returns:
the match list for that summoner
See also:
Riot API Specification
    public static MatchList getMatchList(final long summonerIDfinal int beginIndexfinal long beginTimefinal long endTimefinal List<QueueTypequeueTypes) {
        for(final QueueType queue : queueTypes) {
            if(!.contains(queue)) {
                throw new IllegalArgumentException("Can't get match history for a non-ranked queue type!");
            }
        }
        final String request = ..get("matchlist") + "/matchlist/by-summoner/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 20).add("beginTime"beginTime)
                .add("endTime"endTime).add("rankedQueues"queueTypes).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), MatchList.class);
    }

    
Gets the 20 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
beginTime The begin time to use for fetching games specified as epoch milliseconds
endTime The end time to use for fetching games specified as epoch milliseconds
queueTypes the queue types to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the match list for that summoner
See also:
Riot API Specification
    public static MatchList getMatchList(final long summonerIDfinal int beginIndexfinal long beginTimefinal long endTime,
            final List<QueueTypequeueTypesfinal List<LongchampionIDs) {
        final String request = ..get("matchlist") + "/matchlist/by-summoner/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 20).add("beginTime"beginTime)
                .add("endTime"endTime).add("rankedQueues"queueTypes).add("championIds"championIDs).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), MatchList.class);
    }

    
Gets the 20 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
beginTime The begin time to use for fetching games specified as epoch milliseconds
endTime The end time to use for fetching games specified as epoch milliseconds
queueTypes the queue types to limit games to (only ranked queues)
championIDs the champions to limit games to
seasons the seasons to limit games to
Returns:
the match list for that summoner
See also:
Riot API Specification
    public static MatchList getMatchList(final long summonerIDfinal int beginIndexfinal long beginTimefinal long endTime,
            final List<QueueTypequeueTypesfinal List<LongchampionIDsfinal List<Seasonseasons) {
        for(final QueueType queue : queueTypes) {
            if(!.contains(queue)) {
                throw new IllegalArgumentException("Can't get match history for a non-ranked queue type!");
            }
        }
        final String request = ..get("matchlist") + "/matchlist/by-summoner/" + summonerID;
        final Map<StringStringparams = new ParamsBuilder().add("beginIndex"beginIndex).add("endIndex"beginIndex + 20).add("beginTime"beginTime)
                .add("endTime"endTime).add("rankedQueues"queueTypes).add("championIds"championIDs).add("seasons"seasons).build();
        return ..fromJson(BaseRiotAPI.get(requestparamsfalse), MatchList.class);
    }
New to GrepCode? Check out our FAQ X