This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(live-feed): show the tournament name in tournament mode
- Loading branch information
Benjamin Reed
committed
Nov 17, 2020
1 parent
ee56faf
commit 0c9be3a
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Entry, ID } from './_entry'; | ||
|
||
export class Tournament extends Entry { | ||
public id: ID; | ||
public description: string; | ||
public finalsName: string; | ||
public index: number; | ||
public name: string; | ||
public playoffs: ID; | ||
|
||
constructor(data?: any) { | ||
super(data); | ||
|
||
this.defineStrings([ | ||
'id', | ||
'description', | ||
'finalsName', | ||
'name', | ||
'playoffs', | ||
]); | ||
this.defineNumbers([ | ||
'index', | ||
]); | ||
} | ||
|
||
public get teams(): ID[] { | ||
return this.data?.teams || []; | ||
} | ||
} |