[+] Add rated field to course

This commit is contained in:
Hykilpikonna
2020-04-26 15:03:40 -04:00
parent c66a3b5b11
commit f5beddd68e
+15 -13
View File
@@ -157,22 +157,23 @@ export interface Grading
export default class Course
{
id: number;
id_ci: number;
assignmentsId: number;
name: string;
teacherName: string;
status: string;
rawAssignments: Assignment[];
id: number
id_ci: number
assignmentsId: number
name: string
teacherName: string
status: string
rawAssignments: Assignment[]
rated: boolean
rawLetterGrade?: string;
rawNumericGrade?: number;
rawLetterGrade?: string
rawNumericGrade?: number
level: string;
scaleUp: number;
level: string
scaleUp: number
termGrading: Grading[];
termAssignments: Assignment[][];
termGrading: Grading[]
termAssignments: Assignment[][]
cache: CacheUtils = new CacheUtils();
@@ -189,6 +190,7 @@ export default class Course
this.name = FormatUtils.parseText(courseJson.name).trim();
this.teacherName = courseJson.teacherName;
this.status = courseJson.status;
this.rated = courseJson.rated;
this.rawLetterGrade = courseJson.letterGrade;
this.rawNumericGrade = courseJson.numericGrade;