Class TournamentProvider
Represents a tournament provider in the Riot API.
Inheritance
System.Object
TournamentProvider
Namespace:RiotSharp.TournamentEndpoint
Assembly:RiotSharp.dll
Syntax
public class TournamentProvider : object
Properties
Id
The provider ID.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CreateTournament(String)
Creates a tournament for this provider.
Declaration
public Tournament CreateTournament(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | An optional tournament name. |
Returns
Type | Description |
---|---|
Tournament | A tournament instance. |
CreateTournamentAsync(String)
Asynchronously creates a tournament for this provider.
Declaration
public Task<Tournament> CreateTournamentAsync(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | An optional tournament name. |
Returns
Type | Description |
---|---|
Task<><Tournament> | A tournament instance. |