Class LeagueV4Endpoints
LeagueV4 endpoints. This class is automatically generated.
Official API Reference https://developer.riotgames.com/api-methods/#league-v4
Inherited Members
Namespace: MingweiSamuel.Camille
Assembly: Camille.dll
Syntax
public class LeagueV4Endpoints : Endpoints
Methods
| Improve this Doc View SourceGetChallengerLeague(Region, String, 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(Region region, string queue, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
LeagueList |
GetChallengerLeagueAsync(Region, String, 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(Region region, string queue, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |
GetGrandmasterLeague(Region, String, 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(Region region, string queue, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
LeagueList |
GetGrandmasterLeagueAsync(Region, String, 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(Region region, string queue, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |
GetLeagueById(Region, 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(Region region, string leagueId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | leagueId | The UUID of the league. (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
LeagueList |
GetLeagueByIdAsync(Region, 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(Region region, string leagueId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | leagueId | The UUID of the league. (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |
GetLeagueEntries(Region, String, String, String, 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(Region region, string queue, string tier, string division, int? page = default(int? ), CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | Note that the queue value must be a valid ranked queue. (required) |
System.String | tier | (required) |
System.String | division | (required) |
System.Nullable<System.Int32> | page | Starts with page 1. (optional) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
LeagueEntry[] |
GetLeagueEntriesAsync(Region, String, String, String, 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(Region region, string queue, string tier, string division, int? page = default(int? ), CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | Note that the queue value must be a valid ranked queue. (required) |
System.String | tier | (required) |
System.String | division | (required) |
System.Nullable<System.Int32> | page | Starts with page 1. (optional) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueEntry[]> |
GetLeagueEntriesForSummoner(Region, 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(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
LeagueEntry[] |
GetLeagueEntriesForSummonerAsync(Region, 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(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueEntry[]> |
GetMasterLeague(Region, String, 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(Region region, string queue, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
LeagueList |
GetMasterLeagueAsync(Region, String, 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(Region region, string queue, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | queue | (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LeagueList> |