C# Class RiotNet.RiotClient

Afficher le fichier Open project: aj-r/RiotNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat Task

CreateTournamentCodeAsync() public méthode

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.
Résultat Task>

CreateTournamentProviderAsync() public méthode

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.
Résultat Task

GetChallengerLeagueAsync() public méthode

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

GetChampionByIdAsync() public méthode

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

GetChampionMasteriesAsync() public méthode

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.
Résultat Task>

GetChampionMasteryAsync() public méthode

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.
Résultat Task

GetChampionMasteryScoreAsync() public méthode

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.
Résultat Task

GetChampionMasteryTopChampionsAsync() public méthode

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.
Résultat Task>

GetChampionsAsync() public méthode

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.
Résultat Task>

GetLeagueEntriesBySummonerIdsAsync() public méthode

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
Résultat List>>.Task

GetLeagueEntriesByTeamIdsAsync() public méthode

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
Résultat List>>.Task

GetLeaguesBySummonerIdsAsync() public méthode

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
Résultat List>>.Task

GetLeaguesByTeamIdsAsync() public méthode

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
Résultat List>>.Task

GetMasterLeagueAsync() public méthode

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

GetMatchAsync() public méthode

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.
Résultat Task

GetMatchForTournamentAsync() public méthode

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.
Résultat Task

GetMatchIdsByTournamentCodeAsync() public méthode

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.
Résultat Task>

GetMatchListAsync() public méthode

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.
Résultat Task

GetRankedStatsAsync() public méthode

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.
Résultat Task

GetShardStatusAsync() public méthode

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

GetShardStatusAsync() public méthode

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.
Résultat Task

GetShardsAsync() public méthode

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>
Résultat Task>

GetStaticChampionByIdAsync() public méthode

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'.
Résultat Task

GetStaticChampionsAsync() public méthode

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'.
Résultat Task

GetStaticItemAsync() public méthode

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
Résultat Task

GetStaticItemsAsync() public méthode

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'.
Résultat Task

GetStaticLanguageStringsAsync() public méthode

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 .
Résultat Task

GetStaticLanguagesAsync() public méthode

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>
Résultat Task>

GetStaticMapsAsync() public méthode

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 .
Résultat Task

GetStaticMasteriesAsync() public méthode

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'.
Résultat Task

GetStaticMasteryByIdAsync() public méthode

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'.
Résultat Task

GetStaticRealmAsync() public méthode

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
Résultat Task

GetStaticRuneByIdAsync() public méthode

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'.
Résultat Task

GetStaticRunesAsync() public méthode

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'.
Résultat Task

GetStaticSummonerSpellByIdAsync() public méthode

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'.
Résultat Task

GetStaticSummonerSpellsAsync() public méthode

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'.
Résultat Task

GetStatsSummaryAsync() public méthode

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.
Résultat Task

GetSummonerBySummonerIdAsync() public méthode

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

GetSummonerBySummonerNameAsync() public méthode

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

GetSummonerMasteriesBySummonerIdsAsync() public méthode

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

GetSummonerNamesBySummonerIdsAsync() public méthode

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

GetSummonerRunesBySummonerIdsAsync() public méthode

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

GetSummonersBySummonerIdsAsync() public méthode

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

GetSummonersBySummonerNamesAsync() public méthode

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

GetTeamsBySummonerIdsAsync() public méthode

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

GetTeamsByTeamIdsAsync() public méthode

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

GetTournamentCodeAsync() public méthode

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 .
Résultat Task

GetTournamentCodeLobbyEventsAsync() public méthode

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 .
Résultat Task>

GetVersionsAsync() public méthode

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>
Résultat Task>

UpdateTournamentCodeAsync() public méthode

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.
Résultat Task

UpdateTournamentCodeAsync() public méthode

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.
Résultat Task