Class StatusRiotApi
Entry point for the status API.
Inheritance
System.Object
StatusRiotApi
Namespace:RiotSharp
Assembly:RiotSharp.dll
Syntax
public class StatusRiotApi : object, IStatusRiotApi
Methods
GetInstance()
Get the instance of StatusRiotApi.
Declaration
public static StatusRiotApi GetInstance()
Returns
Type | Description |
---|---|
StatusRiotApi | The instance of StatusRiotApi. |
GetShards()
Get the list of shards synchronously.
Declaration
public List<Shard> GetShards()
Returns
Type | Description |
---|---|
List<><Shard> | A list of shards. |
Implements
GetShardsAsync()
Get the list of shards asynchronously.
Declaration
public Task<List<Shard>> GetShardsAsync()
Returns
Type | Description |
---|---|
Task<><List<><Shard>> | A list of shards. |
Implements
GetShardStatus(Region)
Get shard status synchronously. Returns the data available on the status.leagueoflegends.com website for the given region.
Declaration
public ShardStatus GetShardStatus(Region region)
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region for which to check the status. |
Returns
Type | Description |
---|---|
ShardStatus | A shard status object containing different information regarding the shard. |
Implements
GetShardStatusAsync(Region)
Get shard status asynchronously. Returns the data available on the status.leagueoflegends.com website for the given region.
Declaration
public Task<ShardStatus> GetShardStatusAsync(Region region)
Parameters
Type | Name | Description |
---|---|---|
Region | region | Region for which to check the status. |
Returns
Type | Description |
---|---|
Task<><ShardStatus> | A shard status object containing different information regarding the shard. |