Files
htwkalender/frontend/src/model/module.ts
2023-10-17 21:16:58 +02:00

17 lines
368 B
TypeScript

import { Event } from "./event";
export class Module {
constructor(
public name: string,
public course: string,
public userDefinedName: string,
public prof: string,
public semester: string,
public events: Event[] = [],
) {}
isEqual(module: Module): Boolean {
return this.name === module.name && this.course === module.course;
}
}