Class ChampionMasteryV4Endpoints
ChampionMasteryV4 endpoints. This class is automatically generated.
Official API Reference https://developer.riotgames.com/api-methods/#champion-mastery-v4
Inherited Members
Namespace: MingweiSamuel.Camille
Assembly: Camille.dll
Syntax
public class ChampionMasteryV4Endpoints : Endpoints
Methods
| Improve this Doc View SourceGetAllChampionMasteries(Region, String, Nullable<CancellationToken>)
Get all champion mastery entries sorted by number of champion points descending,
Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getAllChampionMasteries
Declaration
public ChampionMastery[] GetAllChampionMasteries(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | Summoner ID associated with the player (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
ChampionMastery[] |
GetAllChampionMasteriesAsync(Region, String, Nullable<CancellationToken>)
Get all champion mastery entries sorted by number of champion points descending,
Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getAllChampionMasteries
Declaration
public Task<ChampionMastery[]> GetAllChampionMasteriesAsync(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | Summoner ID associated with the player (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<ChampionMastery[]> |
GetChampionMastery(Region, String, Int64, Nullable<CancellationToken>)
Get a champion mastery by player ID and champion ID.
Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMastery
Declaration
public ChampionMastery GetChampionMastery(Region region, string encryptedSummonerId, long championId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | Summoner ID associated with the player (required) |
System.Int64 | championId | Champion ID to retrieve Champion Mastery for (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
ChampionMastery |
GetChampionMasteryAsync(Region, String, Int64, Nullable<CancellationToken>)
Get a champion mastery by player ID and champion ID.
Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMastery
Declaration
public Task<ChampionMastery> GetChampionMasteryAsync(Region region, string encryptedSummonerId, long championId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | Summoner ID associated with the player (required) |
System.Int64 | championId | Champion ID to retrieve Champion Mastery for (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<ChampionMastery> |
GetChampionMasteryScore(Region, String, Nullable<CancellationToken>)
Get a player's total champion mastery score, which is the sum of individual champion mastery levels.
Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMasteryScore
Declaration
public int GetChampionMasteryScore(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | Summoner ID associated with the player (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Int32 |
GetChampionMasteryScoreAsync(Region, String, Nullable<CancellationToken>)
Get a player's total champion mastery score, which is the sum of individual champion mastery levels.
Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMasteryScore
Declaration
public Task<int> GetChampionMasteryScoreAsync(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | Summoner ID associated with the player (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<System.Int32> |