diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-04-13 00:52:32 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-04-13 00:52:32 -0500 |
| commit | f3619b20e1c5baa342eb7466c67c44d3192bb3eb (patch) | |
| tree | 64a6981599ddcb9fa8ede5364770e1f145c1086f /src/models/Lab.ts | |
| parent | 67b7f56f9aeaf5d32cc07d0d776d2e4e95dea21c (diff) | |
Initial TypeScript refactoring
Diffstat (limited to 'src/models/Lab.ts')
| -rw-r--r-- | src/models/Lab.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/models/Lab.ts b/src/models/Lab.ts new file mode 100644 index 0000000..a6972ef --- /dev/null +++ b/src/models/Lab.ts @@ -0,0 +1,23 @@ +import EventInfo from '@/models/EventInfo'; + +export default class Lab { + course: number; + + section: number; + + event: EventInfo; + + constructor(course = 0, section = 0, event = new EventInfo()) { + this.course = course; + this.section = section; + this.event = event; + } + + get id() { + return `${this.course}-${this.section}`; + } + + get fullInfo() { + return `${this.id} ${this.event.info}`; + } +} |
