Class RiotGamesApi
Inheritance
System.Object
RiotGamesApi
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Camille.RiotGames
Assembly: Camille.RiotGames.dll
Syntax
public class RiotGamesApi : IRiotGamesApi
Methods
| Improve this Doc View SourceNewInstance(IRiotGamesApiConfig)
Creates a new RiotApi instance with the provided configuration.
Declaration
public static RiotGamesApi NewInstance(IRiotGamesApiConfig config)
Parameters
Type | Name | Description |
---|---|---|
IRiotGamesApiConfig | config | RiotApiConfig to use. |
Returns
Type | Description |
---|---|
RiotGamesApi | RiotApi instance using supplied configuration. |
NewInstance(String)
Creates a new RiotApi instance with default configuration.
Declaration
public static RiotGamesApi NewInstance(string apiKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | apiKey | Riot API key. |
Returns
Type | Description |
---|---|
RiotGamesApi | RiotApi instance using supllied apiKey. |
Send(String, String, HttpRequestMessage, Nullable<CancellationToken>, Boolean)
Declaration
public async Task Send(string route, string methodId, HttpRequestMessage request, CancellationToken? token = null, bool ignoreAppRateLimits = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | route | |
System.String | methodId | |
System.Net.Http.HttpRequestMessage | request | |
System.Nullable<System.Threading.CancellationToken> | token | |
System.Boolean | ignoreAppRateLimits |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Send<T>(String, String, HttpRequestMessage, Nullable<CancellationToken>, Boolean)
Declaration
public async Task<T> Send<T>(string route, string methodId, HttpRequestMessage request, CancellationToken? token = null, bool ignoreAppRateLimits = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | route | |
System.String | methodId | |
System.Net.Http.HttpRequestMessage | request | |
System.Nullable<System.Threading.CancellationToken> | token | |
System.Boolean | ignoreAppRateLimits |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> |
Type Parameters
Name | Description |
---|---|
T |