C# Class RiotSharp.TournamentEndpoint.Tournament

Class representing a tournament for the Tournament API.
显示文件 Open project: BenFradet/RiotSharp Class Usage Examples

Public Methods

Method Description
CreateTournamentCode ( int teamSize, List allowedSummonerIds, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata ) : string

Create a tournament code for the tournament.

CreateTournamentCodeAsync ( int teamSize, List allowedSummonerIds, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata ) : Task

Create a tournament code for the tournament asynchronously.

CreateTournamentCodes ( int teamSize, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata, int count = 1 ) : List

Create multiple tournament codes for the tournament.

CreateTournamentCodesAsync ( int teamSize, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata, int count = 1 ) : Task>

Create multiple tournament codes for the tournament asynchronously.

Private Methods

Method Description
Tournament ( ) : System

Method Details

CreateTournamentCode() public method

Create a tournament code for the tournament.
public CreateTournamentCode ( int teamSize, List allowedSummonerIds, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata ) : string
teamSize int The team size for the tournament code game.
allowedSummonerIds List participants
spectatorType TournamentSpectatorType The spectator mode for the tournament code game.
pickType TournamentPickType The pick mode for tournament code game.
mapType TournamentMapType The game map for the tournament code game
metadata string The metadata for tournament code.
return string

CreateTournamentCodeAsync() public method

Create a tournament code for the tournament asynchronously.
public CreateTournamentCodeAsync ( int teamSize, List allowedSummonerIds, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata ) : Task
teamSize int The team size for the tournament code game.
allowedSummonerIds List participants
spectatorType TournamentSpectatorType The spectator mode for the tournament code game.
pickType TournamentPickType The pick mode for tournament code game.
mapType TournamentMapType The game map for the tournament code game
metadata string The metadata for tournament code.
return Task

CreateTournamentCodes() public method

Create multiple tournament codes for the tournament.
public CreateTournamentCodes ( int teamSize, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata, int count = 1 ) : List
teamSize int The team size for the tournament code game.
spectatorType TournamentSpectatorType The spectator mode for the tournament code game.
pickType TournamentPickType The pick mode for tournament code game.
mapType TournamentMapType The game map for the tournament code game
metadata string The metadata for tournament code.
count int The number of codes to be created
return List

CreateTournamentCodesAsync() public method

Create multiple tournament codes for the tournament asynchronously.
public CreateTournamentCodesAsync ( int teamSize, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata, int count = 1 ) : Task>
teamSize int The team size for the tournament code game.
spectatorType TournamentSpectatorType The spectator mode for the tournament code game.
pickType TournamentPickType The pick mode for tournament code game.
mapType TournamentMapType The game map for the tournament code game
metadata string The metadata for tournament code.
count int The number of codes to be created
return Task>