@my-swu/simulator-client / TournamentRoomResponse
Interface: TournamentRoomResponse
Defined in: packages/ts-sdk/src/generated/types/common.ts:6199
Public tournament room response.
Example:
ts
import type { TournamentRoomResponse } from '@my-swu/simulator-client'
const tournamentRoomResponse: TournamentRoomResponse = {
"snapshot": {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
},
}
console.log(tournamentRoomResponse)Properties
snapshot
Example:
ts
import type { TournamentRoomResponse } from '@my-swu/simulator-client'
const tournamentRoomResponse: TournamentRoomResponse = {
"snapshot": {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
},
}
const { snapshot: matchSnapshot } = tournamentRoomResponse
console.log(matchSnapshot)snapshot:
TournamentRoomSnapshot
Defined in: packages/ts-sdk/src/generated/types/common.ts:6200
