Class ChampionMasteryV4Endpoints
ChampionMasteryV4 endpoints. This class is automatically generated.
Official API Reference https://developer.riotgames.com/api-methods/#champion-mastery-v4
Inherited Members
Namespace: Camille.RiotGames
Assembly: Camille.RiotGames.dll
Syntax
public class ChampionMasteryV4Endpoints : Endpoints
Methods
| Improve this Doc View SourceGetAllChampionMasteriesByPUUID(PlatformRoute, 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_getAllChampionMasteriesByPUUID
Declaration
public ChampionMastery[] GetAllChampionMasteriesByPUUID(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 |
---|---|
ChampionMastery[] |
GetAllChampionMasteriesByPUUIDAsync(PlatformRoute, 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_getAllChampionMasteriesByPUUID
Declaration
public Task<ChampionMastery[]> GetAllChampionMasteriesByPUUIDAsync(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<ChampionMastery[]> |
GetChampionMasteryByPUUID(PlatformRoute, String, Enums.Champion, Nullable<CancellationToken>)
Get a champion mastery by puuid and champion ID. Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMasteryByPUUID
Declaration
public ChampionMastery GetChampionMasteryByPUUID(PlatformRoute route, string encryptedPUUID, Enums.Champion championId, 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) |
Champion | championId | Champion ID to retrieve Champion Mastery. (required, in path) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
ChampionMastery |
GetChampionMasteryByPUUIDAsync(PlatformRoute, String, Enums.Champion, Nullable<CancellationToken>)
Get a champion mastery by puuid and champion ID. Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMasteryByPUUID
Declaration
public Task<ChampionMastery> GetChampionMasteryByPUUIDAsync(PlatformRoute route, string encryptedPUUID, Enums.Champion championId, 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) |
Champion | championId | Champion ID to retrieve Champion Mastery. (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<ChampionMastery> |
GetChampionMasteryScoreByPUUID(PlatformRoute, 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_getChampionMasteryScoreByPUUID
Declaration
public int GetChampionMasteryScoreByPUUID(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.Int32 |
GetChampionMasteryScoreByPUUIDAsync(PlatformRoute, 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_getChampionMasteryScoreByPUUID
Declaration
public Task<int> GetChampionMasteryScoreByPUUIDAsync(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<System.Int32> |
GetTopChampionMasteriesByPUUID(PlatformRoute, String, Nullable<Int32>, Nullable<CancellationToken>)
Get specified number of top champion mastery entries sorted by number of champion points descending. Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getTopChampionMasteriesByPUUID
Declaration
public ChampionMastery[] GetTopChampionMasteriesByPUUID(PlatformRoute route, string encryptedPUUID, int? count = 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) |
System.String | encryptedPUUID | (required, in path) |
System.Nullable<System.Int32> | count | Number of entries to retrieve, defaults to 3. (optional, in query) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. (optional) |
Returns
Type | Description |
---|---|
ChampionMastery[] |
GetTopChampionMasteriesByPUUIDAsync(PlatformRoute, String, Nullable<Int32>, Nullable<CancellationToken>)
Get specified number of top champion mastery entries sorted by number of champion points descending. Official API Reference: https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getTopChampionMasteriesByPUUID
Declaration
public Task<ChampionMastery[]> GetTopChampionMasteriesByPUUIDAsync(PlatformRoute route, string encryptedPUUID, int? count = 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) |
System.String | encryptedPUUID | (required, in path) |
System.Nullable<System.Int32> | count | Number of entries to retrieve, defaults to 3. (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<ChampionMastery[]> |