@my-swu/simulator-client / TournamentTableView
Interface: TournamentTableView
Defined in: packages/ts-sdk/src/generated/types/common.ts:6284
Public state for one open or active duel table.
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
console.log(tournamentTableView)Properties
createdAtMs
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { createdAtMs } = tournamentTableView
console.log(createdAtMs)createdAtMs:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:6285
creatorPlayerId
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { creatorPlayerId } = tournamentTableView
console.log(creatorPlayerId)creatorPlayerId:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:6286
matchId?
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { matchId } = tournamentTableView
console.log(matchId)
optionalmatchId?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6287
opponentPlayerId?
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { opponentPlayerId } = tournamentTableView
console.log(opponentPlayerId)
optionalopponentPlayerId?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6288
returnedPlayerIds
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { returnedPlayerIds } = tournamentTableView
console.log(returnedPlayerIds)returnedPlayerIds:
string[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:6289
status
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { status: healthStatus } = tournamentTableView
console.log(healthStatus)status:
TournamentTableStatus
Defined in: packages/ts-sdk/src/generated/types/common.ts:6290
tableId
Example:
import type { TournamentTableView } from '@my-swu/simulator-client'
const tournamentTableView: TournamentTableView = {
"tableId": 'example',
"status": "open",
"creatorPlayerId": 'example',
"returnedPlayerIds": [],
"createdAtMs": 0,
}
const { tableId } = tournamentTableView
console.log(tableId)tableId:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:6291
