import TournamentStubEndpoint from 'kayn/lib/Endpoints/TournamentStubEndpoint.js'
TournamentStubEndpoint
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
createTournamentCode(tournamentID: number, body: object): * Create a mock tournament code for the given tournament. |
|
public |
lobbyEvents(tournamentCode: string): * Gets a mock list of lobby events by tournament code. |
|
public |
Creates a mock tournament and returns its ID. |
|
public |
registerProviderData(region: string, url: url): * Creates a mock tournament provider and return its ID. |
Public Constructors
public constructor() source
Public Methods
public createTournamentCode(tournamentID: number, body: object): * source
Create a mock tournament code for the given tournament.
Implements POST /lol/tournament-stub/v3/codes
.
Return:
* |
public lobbyEvents(tournamentCode: string): * source
Gets a mock list of lobby events by tournament code.
Implements GET /lol/tournament-stub/v3/lobby-events/by-code/{tournamentCode}
.
Params:
Name | Type | Attribute | Description |
tournamentCode | string | The short code to look up lobby events for. |
Return:
* |
public register(providerID: number, name: string): * source
Creates a mock tournament and returns its ID.
Implements POST /lol/tournament-stub/v3/tournaments
.
Return:
* |
public registerProviderData(region: string, url: url): * source
Creates a mock tournament provider and return its ID.
Implements POST /lol/tournament-stub/v3/providers
.
Params:
Name | Type | Attribute | Description |
region | string | A region string ('na'/'euw'). Just use kayn's REGIONS dictionary. |
|
url | url | The provider's callback URL to which tournament game results in this region should be posted. See official docs. |
Return:
* |