C# Class RiotNet.RiotClient

Datei anzeigen Open project: aj-r/RiotNet Class Usage Examples

Public Methods

Method Description
CreateTournamentAsync ( long providerId, string name = null ) : Task

Creates a tournament. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

CreateTournamentCodeAsync ( long tournamentId, int count = null, List allowedSummonerIds = null, MapType mapType = MapType.SUMMONERS_RIFT, PickType pickType = PickType.TOURNAMENT_DRAFT, SpectatorType spectatorType = SpectatorType.ALL, int teamSize = 5, string metadata = null ) : Task>

Creates one or more tournament codes. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

CreateTournamentProviderAsync ( string url ) : Task

Registers the current client as a tournament provider. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

GetChallengerLeagueAsync ( RankedQueue type ) : Task

Gets the challenger league. This method uses the League API.

GetChampionByIdAsync ( long id ) : Task

Gets dynamic champion information for the specified champion. This method uses the Champion API.

GetChampionMasteriesAsync ( long playerId ) : Task>

Gets information about a summoner's mastery of all champions they have played. This method uses the Champion Mastery API.

GetChampionMasteryAsync ( long playerId, long championId ) : Task

Gets information about a summoner's mastery of a champion. This method uses the Champion Mastery API.

GetChampionMasteryScoreAsync ( long playerId ) : Task

Gets a summoner's champion mastery score (the sum of the champion levels of all champions for that summoner). This method uses the Champion Mastery API.

GetChampionMasteryTopChampionsAsync ( long playerId, int count = null ) : Task>

Gets information about a summoner's mastery of their most mastered champions. This method uses the Champion Mastery API.

GetChampionsAsync ( bool freeToPlay = false ) : Task>

Gets dynamic champion information for all champions. This method uses the Champion API.

GetLeagueEntriesBySummonerIdsAsync ( ) : List>>.Task

Gets the full league information for all leagues that the summoners are in, including the leages for the teams they are on. Only includes the league entry for the specified summoner(s). Data is mapped by summoner ID. This method uses the League API.

GetLeagueEntriesByTeamIdsAsync ( ) : List>>.Task

Gets the league information for all leagues that the teams are in. Only includes the league entry for the specified team(s). Data is mapped by team ID. This method uses the League API.

GetLeaguesBySummonerIdsAsync ( ) : List>>.Task

Gets the full league information for all leagues that the summoners are in, including the leages for the teams they are on. Data is mapped by summoner ID. This method uses the League API.

GetLeaguesByTeamIdsAsync ( ) : List>>.Task

Gets the full league information for all leagues that the teams are in. Data is mapped by team ID. This method uses the League API.

GetMasterLeagueAsync ( RankedQueue type ) : Task

Gets the master league. This method uses the League API.

GetMatchAsync ( long matchId, bool includeTimeline = false ) : Task

Gets the details of a match. This method uses the Match API.

GetMatchForTournamentAsync ( long matchId, string tournamentCode ) : Task

Gets the details of a match. This method uses the Match API. This endpoint is only accessible if you have a tournament API key.

GetMatchIdsByTournamentCodeAsync ( string tournamentCode ) : Task>

Gets the list of match IDs for a tournament code. This method uses the Match API.

GetMatchListAsync ( long summonerId, long championIds = null, RankedQueue rankedQueues = null, Season seasons = null, DateTime beginTime = null, DateTime endTime = null, int beginIndex = null, int endIndex = null ) : Task

Gets the match list for a summoner. This method uses the Match List API.

GetRankedStatsAsync ( long summonerId, Season season = null ) : Task

Gets the ranked stats for a summoner. Includes ranked stats for Summoner's Rift and Twisted Treeline. This method uses the Stats API.

GetShardStatusAsync ( ) : Task

Gets the status of the shard for the current region. This method uses the LoL Status API.

GetShardStatusAsync ( Region region ) : Task

Gets the status of the shard for the specified region. This method uses the LoL Status API.

GetShardsAsync ( ) : Task>

Gets the list of shards for all reagions. This method uses the LoL Status API.

Calls to this method will not count toward your API rate limit.

GetStaticChampionByIdAsync ( int id, string locale = null, string version = null, IEnumerable champData = null ) : Task

Gets champion details by ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the champData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticChampionsAsync ( string locale = null, string version = null, bool dataById = false, IEnumerable champListData = null ) : Task

Gets the details for all champions. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the champListData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticItemAsync ( int id, string locale = null, string version = null, IEnumerable itemData = null ) : Task

Gets an item by its ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the itemData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticItemsAsync ( string locale = null, string version = null, IEnumerable itemListData = null ) : Task

Gets a list of all available items. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the itemListData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticLanguageStringsAsync ( string locale = null, string version = null ) : Task

Gets a list of available language strings. This method uses the LoL Static Data API.

Calls to this method will not count toward your API rate limit.

GetStaticLanguagesAsync ( ) : Task>

Gets a list of available languages. This method uses the LoL Static Data API.

Calls to this method will not count toward your API rate limit.

GetStaticMapsAsync ( string locale = null, string version = null ) : Task

Gets a list of all maps. This method uses the LoL Static Data API.

Calls to this method will not count toward your API rate limit.

GetStaticMasteriesAsync ( string locale = null, string version = null, IEnumerable masteryListData = null ) : Task

Gets the details for all masteries. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the masteryListData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticMasteryByIdAsync ( int id, string locale = null, string version = null, IEnumerable masteryData = null ) : Task

Gets mastery details by ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the masteryData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticRealmAsync ( ) : Task

Gets the realm data. This method uses the LoL Static Data API.

Calls to this method will not count toward your API rate limit.

GetStaticRuneByIdAsync ( int id, string locale = null, string version = null, IEnumerable runeData = null ) : Task

Gets a rune by ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the runeData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticRunesAsync ( string locale = null, string version = null, IEnumerable runeListData = null ) : Task

Gets a list of all available runes. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the runeListData parameter to specify which properties you want.

Calls to this method will not count toward your API rate limit.

GetStaticSummonerSpellByIdAsync ( int id, string locale = null, string version = null, IEnumerable spellData = null ) : Task

Gets summoner spell details by ID.

Calls to this method will not count toward your API rate limit.

GetStaticSummonerSpellsAsync ( string locale = null, string version = null, bool dataById = false, IEnumerable spellListData = null ) : Task

Gets the details for all summoner spells. This method uses the LoL Static Data API.

Calls to this method will not count toward your API rate limit.

GetStatsSummaryAsync ( long summonerId, Season season = null ) : Task

Gets aggregated stats for a summoner. This method uses the Stats API.

GetSummonerBySummonerIdAsync ( long summonerId ) : Task

Gets the summoner information for the specified summoner. This method uses the Summoner API.

GetSummonerBySummonerNameAsync ( string summonerName ) : Task

Gets the summoner information for the specified summoner. This method uses the Summoner API.

GetSummonerMasteriesBySummonerIdsAsync ( ) : MasteryPages>>.Task

Gets the mastery pages for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.

GetSummonerNamesBySummonerIdsAsync ( ) : String>>.Task

Gets the summoner name for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.

GetSummonerRunesBySummonerIdsAsync ( ) : RunePages>>.Task

Gets the rune pages for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.

GetSummonersBySummonerIdsAsync ( ) : Summoner>>.Task

Gets the summoner information for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.

GetSummonersBySummonerNamesAsync ( ) : Summoner>>.Task

Gets the summoner information for each summoner whose summoner name is in summonerNames. This method uses the Summoner API.

GetTeamsBySummonerIdsAsync ( ) : List>>.Task

Gets, for every summoner in summonerIds, the teams that summoner is on. This method uses the Team API.

GetTeamsByTeamIdsAsync ( ) : Team>>.Task

Gets the team corresponding to each team ID. This method uses the Team API.

GetTournamentCodeAsync ( string tournamentCode ) : Task

Gets the details of a tournament code. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

GetTournamentCodeLobbyEventsAsync ( string tournamentCode ) : Task>

Gets the events that happened in the lobby of atournament code game. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

GetVersionsAsync ( ) : Task>

Gets the list of available game versions. This method uses the LoL Static Data API.

Calls to this method will not count toward your API rate limit.

UpdateTournamentCodeAsync ( TournamentCode tournamentCode ) : Task

Saves changes to a tournament code. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

UpdateTournamentCodeAsync ( string tournamentCode, List allowedSummonerIds = null, MapType mapType = MapType.SUMMONERS_RIFT, PickType pickType = PickType.TOURNAMENT_DRAFT, SpectatorType spectatorType = SpectatorType.ALL ) : Task

Saves changes to a tournament code. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.

Private Methods

Method Description
CorrectPropertyNameCase ( string propertyName, Type type, Type listType = null ) : string
CreateDataParam ( IEnumerable propertyNames, Type type, Type listType = null ) : string
GetStandardQueryParameters ( string locale, string version ) : object>.Dictionary

Method Details

CreateTournamentAsync() public method

Creates a tournament. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public CreateTournamentAsync ( long providerId, string name = null ) : Task
providerId long The providerId obtained from .
name string The optional name of the tournament.
return Task

CreateTournamentCodeAsync() public method

Creates one or more tournament codes. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public CreateTournamentCodeAsync ( long tournamentId, int count = null, List allowedSummonerIds = null, MapType mapType = MapType.SUMMONERS_RIFT, PickType pickType = PickType.TOURNAMENT_DRAFT, SpectatorType spectatorType = SpectatorType.ALL, int teamSize = 5, string metadata = null ) : Task>
tournamentId long The tournament ID obtained from .
count int The number of codes to create (max 1000).
allowedSummonerIds List Optional list of participants in order to validate the players eligible to join the lobby.
mapType MapType The map type of the game. Note that is not allowed.
pickType PickType The pick type of the game.
spectatorType SpectatorType The spectator type of the game.
teamSize int The team size of the game. Valid values are 1-5.
metadata string Optional string that may contain any data in any format, if specified at all. Used to denote any custom information about the game.
return Task>

CreateTournamentProviderAsync() public method

Registers the current client as a tournament provider. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public CreateTournamentProviderAsync ( string url ) : Task
url string The provider's callback URL to which tournament game results in this region should be posted.
return Task

GetChallengerLeagueAsync() public method

Gets the challenger league. This method uses the League API.
public GetChallengerLeagueAsync ( RankedQueue type ) : Task
type RankedQueue The queue type.
return Task

GetChampionByIdAsync() public method

Gets dynamic champion information for the specified champion. This method uses the Champion API.
public GetChampionByIdAsync ( long id ) : Task
id long The champion id.
return Task

GetChampionMasteriesAsync() public method

Gets information about a summoner's mastery of all champions they have played. This method uses the Champion Mastery API.
public GetChampionMasteriesAsync ( long playerId ) : Task>
playerId long The summoner ID.
return Task>

GetChampionMasteryAsync() public method

Gets information about a summoner's mastery of a champion. This method uses the Champion Mastery API.
public GetChampionMasteryAsync ( long playerId, long championId ) : Task
playerId long The summoner ID.
championId long The champion ID.
return Task

GetChampionMasteryScoreAsync() public method

Gets a summoner's champion mastery score (the sum of the champion levels of all champions for that summoner). This method uses the Champion Mastery API.
public GetChampionMasteryScoreAsync ( long playerId ) : Task
playerId long The summoner ID.
return Task

GetChampionMasteryTopChampionsAsync() public method

Gets information about a summoner's mastery of their most mastered champions. This method uses the Champion Mastery API.
public GetChampionMasteryTopChampionsAsync ( long playerId, int count = null ) : Task>
playerId long The summoner ID.
count int The number of entries to retrieve. Defaults to 3.
return Task>

GetChampionsAsync() public method

Gets dynamic champion information for all champions. This method uses the Champion API.
public GetChampionsAsync ( bool freeToPlay = false ) : Task>
freeToPlay bool True if only requesting free to play champion information. Default is false.
return Task>

GetLeagueEntriesBySummonerIdsAsync() public method

Gets the full league information for all leagues that the summoners are in, including the leages for the teams they are on. Only includes the league entry for the specified summoner(s). Data is mapped by summoner ID. This method uses the League API.
public GetLeagueEntriesBySummonerIdsAsync ( ) : List>>.Task
return List>>.Task

GetLeagueEntriesByTeamIdsAsync() public method

Gets the league information for all leagues that the teams are in. Only includes the league entry for the specified team(s). Data is mapped by team ID. This method uses the League API.
public GetLeagueEntriesByTeamIdsAsync ( ) : List>>.Task
return List>>.Task

GetLeaguesBySummonerIdsAsync() public method

Gets the full league information for all leagues that the summoners are in, including the leages for the teams they are on. Data is mapped by summoner ID. This method uses the League API.
public GetLeaguesBySummonerIdsAsync ( ) : List>>.Task
return List>>.Task

GetLeaguesByTeamIdsAsync() public method

Gets the full league information for all leagues that the teams are in. Data is mapped by team ID. This method uses the League API.
public GetLeaguesByTeamIdsAsync ( ) : List>>.Task
return List>>.Task

GetMasterLeagueAsync() public method

Gets the master league. This method uses the League API.
public GetMasterLeagueAsync ( RankedQueue type ) : Task
type RankedQueue The queue type.
return Task

GetMatchAsync() public method

Gets the details of a match. This method uses the Match API.
public GetMatchAsync ( long matchId, bool includeTimeline = false ) : Task
matchId long The ID of the match.
includeTimeline bool Whether or not to include the match timeline data.
return Task

GetMatchForTournamentAsync() public method

Gets the details of a match. This method uses the Match API. This endpoint is only accessible if you have a tournament API key.
public GetMatchForTournamentAsync ( long matchId, string tournamentCode ) : Task
matchId long The ID of the match.
tournamentCode string The tournament code.
return Task

GetMatchIdsByTournamentCodeAsync() public method

Gets the list of match IDs for a tournament code. This method uses the Match API.
public GetMatchIdsByTournamentCodeAsync ( string tournamentCode ) : Task>
tournamentCode string The tournament code.
return Task>

GetMatchListAsync() public method

Gets the match list for a summoner. This method uses the Match List API.
public GetMatchListAsync ( long summonerId, long championIds = null, RankedQueue rankedQueues = null, Season seasons = null, DateTime beginTime = null, DateTime endTime = null, int beginIndex = null, int endIndex = null ) : Task
summonerId long The summoner's summoner IDs.
championIds long Only get games where the summoner played one of these champions.
rankedQueues RankedQueue Only get games from these ranked queues.
seasons Season Only get games from these seasons.
beginTime DateTime Only get games played after this time.
endTime DateTime Only get games played before this time.
beginIndex int The begin index to use for fetching games.
endIndex int The end index to use for fetching games. The maximum allowed difference between beginIndex and endIndex is 20; if it is larger than 20, endIndex will be modified to satisfy this restriction.
return Task

GetRankedStatsAsync() public method

Gets the ranked stats for a summoner. Includes ranked stats for Summoner's Rift and Twisted Treeline. This method uses the Stats API.
public GetRankedStatsAsync ( long summonerId, Season season = null ) : Task
summonerId long The summoner's summoner IDs.
season Season The season to get ranked stats for. If unspecified, stats for the current season are returned.
return Task

GetShardStatusAsync() public method

Gets the status of the shard for the current region. This method uses the LoL Status API.
public GetShardStatusAsync ( ) : Task
return Task

GetShardStatusAsync() public method

Gets the status of the shard for the specified region. This method uses the LoL Status API.
public GetShardStatusAsync ( Region region ) : Task
region Region The region for the shard.
return Task

GetShardsAsync() public method

Gets the list of shards for all reagions. This method uses the LoL Status API.
Calls to this method will not count toward your API rate limit.
public GetShardsAsync ( ) : Task>
return Task>

GetStaticChampionByIdAsync() public method

Gets champion details by ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the champData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticChampionByIdAsync ( int id, string locale = null, string version = null, IEnumerable champData = null ) : Task
id int The champion ID.
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. A list of valid versions can be obtained from .
champData IEnumerable Tags to return additional data. Valid tags are any property of the object. Only id, name, key, and title are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticChampionsAsync() public method

Gets the details for all champions. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the champListData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticChampionsAsync ( string locale = null, string version = null, bool dataById = false, IEnumerable champListData = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
dataById bool If true, the returned data map will use the champions' IDs as the keys. If false, the returned data map will use the champions' keys instead.
champListData IEnumerable Tags to return additional data. Valid tags are any property of the or objects. Only type, version, data, id, name, key, and title are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticItemAsync() public method

Gets an item by its ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the itemData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticItemAsync ( int id, string locale = null, string version = null, IEnumerable itemData = null ) : Task
id int The item ID.
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
itemData IEnumerable
return Task

GetStaticItemsAsync() public method

Gets a list of all available items. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the itemListData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticItemsAsync ( string locale = null, string version = null, IEnumerable itemListData = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
itemListData IEnumerable Tags to return additional data. Valid tags are any property of the or objects. Only id, name, type, version, basic, data, plaintext, group, and description are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticLanguageStringsAsync() public method

Gets a list of available language strings. This method uses the LoL Static Data API.
Calls to this method will not count toward your API rate limit.
public GetStaticLanguageStringsAsync ( string locale = null, string version = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
return Task

GetStaticLanguagesAsync() public method

Gets a list of available languages. This method uses the LoL Static Data API.
Calls to this method will not count toward your API rate limit.
public GetStaticLanguagesAsync ( ) : Task>
return Task>

GetStaticMapsAsync() public method

Gets a list of all maps. This method uses the LoL Static Data API.
Calls to this method will not count toward your API rate limit.
public GetStaticMapsAsync ( string locale = null, string version = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
return Task

GetStaticMasteriesAsync() public method

Gets the details for all masteries. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the masteryListData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticMasteriesAsync ( string locale = null, string version = null, IEnumerable masteryListData = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
masteryListData IEnumerable Tags to return additional data. Valid tags are any property of the or objects. Only type, version, data, id, name, and description are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticMasteryByIdAsync() public method

Gets mastery details by ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the masteryData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticMasteryByIdAsync ( int id, string locale = null, string version = null, IEnumerable masteryData = null ) : Task
id int The mastery ID.
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. A list of valid versions can be obtained from .
masteryData IEnumerable Tags to return additional data. Valid tags are any property of the object. Only id, name, description are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticRealmAsync() public method

Gets the realm data. This method uses the LoL Static Data API.
Calls to this method will not count toward your API rate limit.
public GetStaticRealmAsync ( ) : Task
return Task

GetStaticRuneByIdAsync() public method

Gets a rune by ID. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the runeData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticRuneByIdAsync ( int id, string locale = null, string version = null, IEnumerable runeData = null ) : Task
id int The rune ID.
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. A list of valid versions can be obtained from .
runeData IEnumerable Tags to return additional data. Valid tags are any property of the object. Only id, name, rune, and description are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticRunesAsync() public method

Gets a list of all available runes. This method uses the LoL Static Data API. NOTE: Most properties are not returned by default! Use the runeListData parameter to specify which properties you want.
Calls to this method will not count toward your API rate limit.
public GetStaticRunesAsync ( string locale = null, string version = null, IEnumerable runeListData = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
runeListData IEnumerable Tags to return additional data. Valid tags are any property of the or objects. Only type, version, data, id, name, rune, and description are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticSummonerSpellByIdAsync() public method

Gets summoner spell details by ID.
Calls to this method will not count toward your API rate limit.
public GetStaticSummonerSpellByIdAsync ( int id, string locale = null, string version = null, IEnumerable spellData = null ) : Task
id int The summoner spell ID.
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. A list of valid versions can be obtained from .
spellData IEnumerable Tags to return additional data. Valid tags are any property of the object. Only id, key, name, description, and summonerLevel are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStaticSummonerSpellsAsync() public method

Gets the details for all summoner spells. This method uses the LoL Static Data API.
Calls to this method will not count toward your API rate limit.
public GetStaticSummonerSpellsAsync ( string locale = null, string version = null, bool dataById = false, IEnumerable spellListData = null ) : Task
locale string Locale code for returned data (e.g., en_US, es_ES). If not specified, the default locale for the region is used.
version string The game version for returned data. If not specified, the latest version for the region is used. List of valid versions can be obtained from .
dataById bool If true, the returned data map will use the spells' IDs as the keys. If false, the returned data map will use the spells' keys instead.
spellListData IEnumerable Tags to return additional data. Valid tags are any property of the or objects. Only type, version, data, id, key, name, description, and summonerLevel are returned by default if this parameter isn't specified. To return all additional data, use the tag 'all'.
return Task

GetStatsSummaryAsync() public method

Gets aggregated stats for a summoner. This method uses the Stats API.
public GetStatsSummaryAsync ( long summonerId, Season season = null ) : Task
summonerId long The summoner's summoner IDs.
season Season The season to get stats for. If unspecified, stats for the current season are returned.
return Task

GetSummonerBySummonerIdAsync() public method

Gets the summoner information for the specified summoner. This method uses the Summoner API.
public GetSummonerBySummonerIdAsync ( long summonerId ) : Task
summonerId long The summoner ID.
return Task

GetSummonerBySummonerNameAsync() public method

Gets the summoner information for the specified summoner. This method uses the Summoner API.
public GetSummonerBySummonerNameAsync ( string summonerName ) : Task
summonerName string The summoner name.
return Task

GetSummonerMasteriesBySummonerIdsAsync() public method

Gets the mastery pages for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.
public GetSummonerMasteriesBySummonerIdsAsync ( ) : MasteryPages>>.Task
return MasteryPages>>.Task

GetSummonerNamesBySummonerIdsAsync() public method

Gets the summoner name for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.
public GetSummonerNamesBySummonerIdsAsync ( ) : String>>.Task
return String>>.Task

GetSummonerRunesBySummonerIdsAsync() public method

Gets the rune pages for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.
public GetSummonerRunesBySummonerIdsAsync ( ) : RunePages>>.Task
return RunePages>>.Task

GetSummonersBySummonerIdsAsync() public method

Gets the summoner information for each summoner whose summoner ID is in summonerIds. This method uses the Summoner API.
public GetSummonersBySummonerIdsAsync ( ) : Summoner>>.Task
return Summoner>>.Task

GetSummonersBySummonerNamesAsync() public method

Gets the summoner information for each summoner whose summoner name is in summonerNames. This method uses the Summoner API.
public GetSummonersBySummonerNamesAsync ( ) : Summoner>>.Task
return Summoner>>.Task

GetTeamsBySummonerIdsAsync() public method

Gets, for every summoner in summonerIds, the teams that summoner is on. This method uses the Team API.
public GetTeamsBySummonerIdsAsync ( ) : List>>.Task
return List>>.Task

GetTeamsByTeamIdsAsync() public method

Gets the team corresponding to each team ID. This method uses the Team API.
public GetTeamsByTeamIdsAsync ( ) : Team>>.Task
return Team>>.Task

GetTournamentCodeAsync() public method

Gets the details of a tournament code. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public GetTournamentCodeAsync ( string tournamentCode ) : Task
tournamentCode string The tournament code obtained from .
return Task

GetTournamentCodeLobbyEventsAsync() public method

Gets the events that happened in the lobby of atournament code game. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public GetTournamentCodeLobbyEventsAsync ( string tournamentCode ) : Task>
tournamentCode string The tournament code obtained from .
return Task>

GetVersionsAsync() public method

Gets the list of available game versions. This method uses the LoL Static Data API.
Calls to this method will not count toward your API rate limit.
public GetVersionsAsync ( ) : Task>
return Task>

UpdateTournamentCodeAsync() public method

Saves changes to a tournament code. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public UpdateTournamentCodeAsync ( TournamentCode tournamentCode ) : Task
tournamentCode TournamentCode The tournament code to update. Only the Code, Participants, MapType, PickType, and SpectatorType proerties are used.
return Task

UpdateTournamentCodeAsync() public method

Saves changes to a tournament code. This method uses the Tournament API. This endpoint is only accessible if you have a tournament API key. IMPORTANT: if you are using an interim API key, you must set RiotClientSettings.UseTournamentStub to true before calling this method.
public UpdateTournamentCodeAsync ( string tournamentCode, List allowedSummonerIds = null, MapType mapType = MapType.SUMMONERS_RIFT, PickType pickType = PickType.TOURNAMENT_DRAFT, SpectatorType spectatorType = SpectatorType.ALL ) : Task
tournamentCode string The tournament code obtained from .
allowedSummonerIds List Optional list of participants in order to validate the players eligible to join the lobby.
mapType MapType The map type of the game.
pickType PickType The pick type of the game.
spectatorType SpectatorType The spectator type of the game.
return Task