Exemple #1
0
 public StaticRealm GetRealms()
 {
     return(RiotApi.GetObject <StaticRealm>(BaseUrl + "/realms"));
 }
Exemple #2
0
 public LolStatusApi(RiotApi riotApi) : base(riotApi, "/lol/status/v3")
 {
 }
Exemple #3
0
 public FeaturedGames GetFeaturedGames()
 {
     return(RiotApi.GetObject <FeaturedGames>(BaseUrl + "/featured-games"));
 }
Exemple #4
0
 public Summoner GetSummoner(string summonerName)
 {
     return(RiotApi.GetObject <Summoner>(BaseUrl + $"/by-name/{summonerName}"));
 }
Exemple #5
0
 public SummonerApi(RiotApi riotApi) : base(riotApi, "/lol/summoner/v3/summoners")
 {
 }
Exemple #6
0
 public IEnumerable <long> GetMatchesByTournamentCode(string tournamentCode)
 {
     return(RiotApi.GetObject <IEnumerable <long> >(BaseUrl + $"/matches/by-tournament-code/{tournamentCode}/ids"));
 }
Exemple #7
0
 public MatchApi(RiotApi riotApi) : base(riotApi, "/lol/match/v3")
 {
 }
Exemple #8
0
 public IEnumerable <ChampionMastery> GetChampionMasteriesBySummonerId(long summonerId)
 {
     return(RiotApi.GetObject <IEnumerable <ChampionMastery> >(BaseUrl + $"/champion-masteries/by-summoner/{summonerId}"));
 }
Exemple #9
0
 public ChampionMastery GetChampionMasteryBySummonerIdAndChampionId(long summonerId, long championId)
 {
     return(RiotApi.GetObject <ChampionMastery>(BaseUrl + $"/champion-masteries/by-summoner/{summonerId}/by-champion/{championId}"));
 }
Exemple #10
0
 public StaticReforgedRune GetReforgedRunes(long runeId)
 {
     return(RiotApi.GetObject <StaticReforgedRune>(BaseUrl + $"/reforged-runes/{runeId}"));
 }
Exemple #11
0
 public StaticRuneList GetRunes()
 {
     return(RiotApi.GetObject <StaticRuneList>(BaseUrl + "/runes"));
 }
Exemple #12
0
 public IEnumerable <StaticReforgedRune> GetReforgedRunes()
 {
     return(RiotApi.GetObject <IEnumerable <StaticReforgedRune> >(BaseUrl + "/reforged-runes"));
 }
Exemple #13
0
 public StaticReforgedRunePath GetReforgedRunePaths(long pathId)
 {
     return(RiotApi.GetObject <StaticReforgedRunePath>(BaseUrl + $"/reforged-rune-paths/{pathId}"));
 }
Exemple #14
0
 public StaticReforgedRunePath GetReforgedRunePaths()
 {
     return(RiotApi.GetObject <StaticReforgedRunePath>(BaseUrl + "/reforged-rune-paths"));
 }
Exemple #15
0
 public MatchList GetMatchesByAccountId(int accountId, OptionalParameters optionalParameters)
 {
     return(RiotApi.GetObjectWithOptionalParameters <MatchList>(BaseUrl + $"/matchlists/by-account/{accountId}", optionalParameters));
 }
Exemple #16
0
 public int GetMasteryScoreBySummonerId(long summonerId)
 {
     return(RiotApi.GetObject <int>(BaseUrl + $"/scores/by-summoner/{summonerId}"));
 }
Exemple #17
0
 public MatchTimeline GetMatchTimelineById(long matchId)
 {
     return(RiotApi.GetObject <MatchTimeline>(BaseUrl + $"/timelines/by-match/{matchId}"));
 }
Exemple #18
0
 public ChampionMasteryApi(RiotApi riotApi) : base(riotApi, "/lol/champion-mastery/v3")
 {
 }
Exemple #19
0
 public Match GetMatchByTournamentCode(long matchId, string tournamentCode)
 {
     return(RiotApi.GetObject <Match>(BaseUrl + $"/matches/{matchId}/by-tournament-code/{tournamentCode}"));
 }
Exemple #20
0
 public LeagueList GetLeague(string leagueId)
 {
     return(RiotApi.GetObject <LeagueList>(BaseUrl + $"/leagues/{leagueId}"));
 }
Exemple #21
0
 public Summoner GetSummoner(long summonerId)
 {
     return(RiotApi.GetObject <Summoner>(BaseUrl + $"/{summonerId}"));
 }
Exemple #22
0
 public LeagueList GetChallengerLeague(string queueName)
 {
     return(RiotApi.GetObject <LeagueList>(BaseUrl + $"/challengerleagues/by-queue/{queueName}"));
 }
Exemple #23
0
 public Summoner GetSummonerByAccountId(int accountId)
 {
     return(RiotApi.GetObject <Summoner>(BaseUrl + $"/by-account/{accountId}"));
 }
Exemple #24
0
 public IEnumerable <LeaguePosition> GetLeaguePositions(long summonerId)
 {
     return(RiotApi.GetObject <IEnumerable <LeaguePosition> >(BaseUrl + $"/positions/by-summoner/{summonerId}"));
 }
Exemple #25
0
 public ShardStatus GetShardStatus()
 {
     return(RiotApi.GetObject <ShardStatus>(BaseUrl + "/shard-data/"));
 }
Exemple #26
0
 public LeagueApi(RiotApi riotApi) : base(riotApi, "/lol/league/v3")
 {
 }
Exemple #27
0
 public CurrentGameInfo GetActiveGame(long summonerId)
 {
     return(RiotApi.GetObject <CurrentGameInfo>(BaseUrl + $"/active-games/by-summoner/{summonerId}"));
 }
Exemple #28
0
 public Match GetMatchById(long matchId)
 {
     return(RiotApi.GetObject <Match>(BaseUrl + $"/matches/{matchId}"));
 }
Exemple #29
0
 public SpectatorApi(RiotApi riotApi) : base(riotApi, "/lol/spectator/v3")
 {
 }
Exemple #30
0
 public StaticProfileIconData GetProfileIcons()
 {
     return(RiotApi.GetObject <StaticProfileIconData>(BaseUrl + "/profile-icons"));
 }