aboutsummaryrefslogtreecommitdiff
path: root/src/models/Lab.ts
blob: a6972ef5acca9d343bf7ef71b4b58cdda860be00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}`;
  }
}