updated Course schema
This commit is contained in:
@@ -2,14 +2,35 @@ import { Serialized } from 'chrome-extension-toolkit';
|
||||
|
||||
type CourseSchedule = {};
|
||||
|
||||
export class Course {
|
||||
id: number;
|
||||
type Professor = {
|
||||
name: string;
|
||||
professor: string;
|
||||
firstName?: string;
|
||||
initial?: string;
|
||||
};
|
||||
|
||||
type InstructionMode = 'Online' | 'In Person' | 'Hybrid';
|
||||
|
||||
type Links = {
|
||||
syllabi?: string;
|
||||
textbook?: string;
|
||||
rateMyProfessor?: string;
|
||||
eCIS?: string;
|
||||
};
|
||||
|
||||
export class Course {
|
||||
uniqueId: number;
|
||||
number: string;
|
||||
name: string;
|
||||
department: string;
|
||||
professor: Professor;
|
||||
description?: string;
|
||||
schedule: CourseSchedule;
|
||||
currentStatus: string;
|
||||
url: string;
|
||||
links: Links;
|
||||
registerURL?: string;
|
||||
flags: string[];
|
||||
instructionMode: InstructionMode;
|
||||
|
||||
constructor(course: Course | Serialized<Course>) {
|
||||
Object.assign(this, course);
|
||||
|
||||
Reference in New Issue
Block a user