Show / Hide Table of Contents

Class Tournament

Class representing a tournament for the Tournament API.

Inheritance
System.Object
Tournament
Namespace:RiotSharp.TournamentEndpoint
Assembly:RiotSharp.dll
Syntax
public class Tournament : object

Properties

Id

Tournament's ID

Declaration
public int Id { get; set; }
Property Value
Type Description
System.Int32

Methods

CreateTournamentCode(Int32, List<Int64>, TournamentSpectatorType, TournamentPickType, TournamentMapType, String)

Create a tournament code for the tournament.

Declaration
public string CreateTournamentCode(int teamSize, List<long> allowedSummonerIds, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata)
Parameters
Type Name Description
System.Int32 teamSize

The team size for the tournament code game.

List<><System.Int64> allowedSummonerIds

participants

TournamentSpectatorType spectatorType

The spectator mode for the tournament code game.

TournamentPickType pickType

The pick mode for tournament code game.

TournamentMapType mapType

The game map for the tournament code game

System.String metadata

The metadata for tournament code.

Returns
Type Description
System.String

The tournament code.

CreateTournamentCodeAsync(Int32, List<Int64>, TournamentSpectatorType, TournamentPickType, TournamentMapType, String)

Create a tournament code for the tournament asynchronously.

Declaration
public Task<string> CreateTournamentCodeAsync(int teamSize, List<long> allowedSummonerIds, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata)
Parameters
Type Name Description
System.Int32 teamSize

The team size for the tournament code game.

List<><System.Int64> allowedSummonerIds

participants

TournamentSpectatorType spectatorType

The spectator mode for the tournament code game.

TournamentPickType pickType

The pick mode for tournament code game.

TournamentMapType mapType

The game map for the tournament code game

System.String metadata

The metadata for tournament code.

Returns
Type Description
Task<><System.String>

The tournament code.

CreateTournamentCodes(Int32, TournamentSpectatorType, TournamentPickType, TournamentMapType, String, Int32)

Create multiple tournament codes for the tournament.

Declaration
public List<string> CreateTournamentCodes(int teamSize, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata, int count = 1)
Parameters
Type Name Description
System.Int32 teamSize

The team size for the tournament code game.

TournamentSpectatorType spectatorType

The spectator mode for the tournament code game.

TournamentPickType pickType

The pick mode for tournament code game.

TournamentMapType mapType

The game map for the tournament code game

System.String metadata

The metadata for tournament code.

System.Int32 count

The number of codes to be created

Returns
Type Description
List<><System.String>

A list of the created tournament codes

CreateTournamentCodesAsync(Int32, TournamentSpectatorType, TournamentPickType, TournamentMapType, String, Int32)

Create multiple tournament codes for the tournament asynchronously.

Declaration
public Task<List<string>> CreateTournamentCodesAsync(int teamSize, TournamentSpectatorType spectatorType, TournamentPickType pickType, TournamentMapType mapType, string metadata, int count = 1)
Parameters
Type Name Description
System.Int32 teamSize

The team size for the tournament code game.

TournamentSpectatorType spectatorType

The spectator mode for the tournament code game.

TournamentPickType pickType

The pick mode for tournament code game.

TournamentMapType mapType

The game map for the tournament code game

System.String metadata

The metadata for tournament code.

System.Int32 count

The number of codes to be created

Returns
Type Description
Task<><List<><System.String>>

A list of the created tournament codes

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX