mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-06 19:59:13 +02:00
Merge branch 'main' into 10-roomfinder
This commit is contained in:
10
frontend/src/model/calendar.ts
Normal file
10
frontend/src/model/calendar.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Module } from "./module";
|
||||
|
||||
export type Calendar = {
|
||||
collectionId: string;
|
||||
collectionName: string;
|
||||
created: string;
|
||||
id: string;
|
||||
modules: Module[];
|
||||
updated: string;
|
||||
};
|
@@ -1,16 +1,16 @@
|
||||
export class Event {
|
||||
constructor(
|
||||
public Days: string,
|
||||
public Week: string,
|
||||
public Start: string,
|
||||
public End: string,
|
||||
public Name: string,
|
||||
public EventType: string,
|
||||
public Prof: string,
|
||||
public Rooms: string,
|
||||
public Notes: string,
|
||||
public BookedAt: string,
|
||||
public Course: string,
|
||||
public Semester: string,
|
||||
public bookedAt: string,
|
||||
public course: string,
|
||||
public day: string,
|
||||
public end: string,
|
||||
public eventType: string,
|
||||
public name: string,
|
||||
public notes: string,
|
||||
public prof: string,
|
||||
public rooms: string,
|
||||
public semester: string,
|
||||
public start: string,
|
||||
public week: string,
|
||||
) {}
|
||||
}
|
||||
|
@@ -1,7 +1,16 @@
|
||||
import { Event } from "./event";
|
||||
|
||||
export class Module {
|
||||
constructor(
|
||||
public Name: string,
|
||||
public Course: string,
|
||||
public UserDefinedName: string,
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user