Class LeagueV4Endpoints
LeagueV4 endpoints. This class is automatically generated.
Official API Reference https://developer.riotgames.com/api-methods/#league-v4
Inherited Members
Namespace: Camille.RiotGames
Assembly: Camille.RiotGames.dll
Syntax
public class LeagueV4Endpoints : Endpoints
Methods
| Improve this Doc View SourceGetChallengerLeague(PlatformRoute, Enums.QueueType, Nullable<CancellationToken>)
Get the challenger league for given queue. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getChallengerLeague
Declaration
public LeagueList GetChallengerLeague(PlatformRoute route, Enums.QueueType queue, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueList |
GetChallengerLeagueAsync(PlatformRoute, Enums.QueueType, Nullable<CancellationToken>)
Get the challenger league for given queue. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getChallengerLeague
Declaration
public Task<LeagueList> GetChallengerLeagueAsync(PlatformRoute route, Enums.QueueType queue, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |
GetGrandmasterLeague(PlatformRoute, Enums.QueueType, Nullable<CancellationToken>)
Get the grandmaster league of a specific queue. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getGrandmasterLeague
Declaration
public LeagueList GetGrandmasterLeague(PlatformRoute route, Enums.QueueType queue, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueList |
GetGrandmasterLeagueAsync(PlatformRoute, Enums.QueueType, Nullable<CancellationToken>)
Get the grandmaster league of a specific queue. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getGrandmasterLeague
Declaration
public Task<LeagueList> GetGrandmasterLeagueAsync(PlatformRoute route, Enums.QueueType queue, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |
GetLeagueById(PlatformRoute, String, Nullable<CancellationToken>)
Get league with given ID, including inactive entries. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueById
Declaration
public LeagueList GetLeagueById(PlatformRoute route, string leagueId, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
System.String | leagueId | The UUID of the league. (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueList |
GetLeagueByIdAsync(PlatformRoute, String, Nullable<CancellationToken>)
Get league with given ID, including inactive entries. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueById
Declaration
public Task<LeagueList> GetLeagueByIdAsync(PlatformRoute route, string leagueId, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
System.String | leagueId | The UUID of the league. (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |
GetLeagueEntries(PlatformRoute, Enums.QueueType, Enums.Tier, Enums.Division, Nullable<Int32>, Nullable<CancellationToken>)
Get all the league entries. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntries
Declaration
public LeagueEntry[] GetLeagueEntries(PlatformRoute route, Enums.QueueType queue, Enums.Tier tier, Enums.Division division, int? page = null, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | Note that the queue value must be a valid ranked queue. (required, in path) |
Tier | tier | (required, in path) |
Division | division | (required, in path) |
System.Nullable<System.Int32> | page | Defaults to 1. Starts with page 1. (optional, in query) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueEntry[] |
GetLeagueEntriesAsync(PlatformRoute, Enums.QueueType, Enums.Tier, Enums.Division, Nullable<Int32>, Nullable<CancellationToken>)
Get all the league entries. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntries
Declaration
public Task<LeagueEntry[]> GetLeagueEntriesAsync(PlatformRoute route, Enums.QueueType queue, Enums.Tier tier, Enums.Division division, int? page = null, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | Note that the queue value must be a valid ranked queue. (required, in path) |
Tier | tier | (required, in path) |
Division | division | (required, in path) |
System.Nullable<System.Int32> | page | Defaults to 1. Starts with page 1. (optional, in query) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueEntry[]> |
GetLeagueEntriesByPUUID(PlatformRoute, String, Nullable<CancellationToken>)
Get league entries in all queues for a given puuid Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntriesByPUUID
Declaration
public LeagueEntry[] GetLeagueEntriesByPUUID(PlatformRoute route, string encryptedPUUID, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
System.String | encryptedPUUID | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueEntry[] |
GetLeagueEntriesByPUUIDAsync(PlatformRoute, String, Nullable<CancellationToken>)
Get league entries in all queues for a given puuid Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntriesByPUUID
Declaration
public Task<LeagueEntry[]> GetLeagueEntriesByPUUIDAsync(PlatformRoute route, string encryptedPUUID, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
System.String | encryptedPUUID | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueEntry[]> |
GetLeagueEntriesForSummoner(PlatformRoute, String, Nullable<CancellationToken>)
Get league entries in all queues for a given summoner ID. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntriesForSummoner
Declaration
public LeagueEntry[] GetLeagueEntriesForSummoner(PlatformRoute route, string encryptedSummonerId, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
System.String | encryptedSummonerId | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueEntry[] |
GetLeagueEntriesForSummonerAsync(PlatformRoute, String, Nullable<CancellationToken>)
Get league entries in all queues for a given summoner ID. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntriesForSummoner
Declaration
public Task<LeagueEntry[]> GetLeagueEntriesForSummonerAsync(PlatformRoute route, string encryptedSummonerId, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
System.String | encryptedSummonerId | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueEntry[]> |
GetMasterLeague(PlatformRoute, Enums.QueueType, Nullable<CancellationToken>)
Get the master league for given queue. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getMasterLeague
Declaration
public LeagueList GetMasterLeague(PlatformRoute route, Enums.QueueType queue, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
LeagueList |
GetMasterLeagueAsync(PlatformRoute, Enums.QueueType, Nullable<CancellationToken>)
Get the master league for given queue. Official API Reference: https://developer.riotgames.com/api-methods/#league-v4/GET_getMasterLeague
Declaration
public Task<LeagueList> GetMasterLeagueAsync(PlatformRoute route, Enums.QueueType queue, CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | route | Route to query. Corresponds to a Riot API subdomain for a region or platform. (required) |
QueueType | queue | (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |