Class SpectatorV4Endpoints
SpectatorV4 endpoints. This class is automatically generated.
Official API Reference https://developer.riotgames.com/api-methods/#spectator-v4
Inherited Members
Namespace: MingweiSamuel.Camille
Assembly: Camille.dll
Syntax
public class SpectatorV4Endpoints : Endpoints
Methods
| Improve this Doc View SourceGetCurrentGameInfoBySummoner(Region, String, Nullable<CancellationToken>)
Get current game information for the given summoner ID.
Official API Reference: https://developer.riotgames.com/api-methods/#spectator-v4/GET_getCurrentGameInfoBySummoner
Declaration
public CurrentGameInfo GetCurrentGameInfoBySummoner(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | The ID of the summoner. (required) |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
CurrentGameInfo |
GetCurrentGameInfoBySummonerAsync(Region, String, Nullable<CancellationToken>)
Get current game information for the given summoner ID.
Official API Reference: https://developer.riotgames.com/api-methods/#spectator-v4/GET_getCurrentGameInfoBySummoner
Declaration
public Task<CurrentGameInfo> GetCurrentGameInfoBySummonerAsync(Region region, string encryptedSummonerId, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.String | encryptedSummonerId | The ID of the summoner. (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<CurrentGameInfo> |
GetFeaturedGames(Region, Nullable<CancellationToken>)
Get list of featured games.
Official API Reference: https://developer.riotgames.com/api-methods/#spectator-v4/GET_getFeaturedGames
Declaration
public FeaturedGames GetFeaturedGames(Region region, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
FeaturedGames |
GetFeaturedGamesAsync(Region, Nullable<CancellationToken>)
Get list of featured games.
Official API Reference: https://developer.riotgames.com/api-methods/#spectator-v4/GET_getFeaturedGames
Declaration
public Task<FeaturedGames> GetFeaturedGamesAsync(Region region, CancellationToken? cancellationToken = default(CancellationToken? ))
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region to query. |
System.Nullable<System.Threading.CancellationToken> | cancellationToken | A cancellation token that can be used to cancel this task. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FeaturedGames> |