aboutsummaryrefslogtreecommitdiff
path: root/src/models/PeerTeacher.ts
blob: 6518a80c7f4d225a76b7eba465b0830063a64a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import type EventInfo from "./EventInfo";

export default class PeerTeacher {
    id: number;
    firstname: string;
    lastname: string;
    events: EventInfo[];
    labs: Set<number>;

    constructor(id: number | string, firstname: string, lastname: string) {
        if(typeof id === "string") {
            id = parseInt(id, 10);
        }

        this.id = id;
        this.firstname = firstname;
        this.lastname = lastname;
        this.events = [];
        this.labs = new Set();
    }
}