[+] 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 export default class Course
{ {
id: number; id: number
id_ci: number; id_ci: number
assignmentsId: number; assignmentsId: number
name: string; name: string
teacherName: string; teacherName: string
status: string; status: string
rawAssignments: Assignment[]; rawAssignments: Assignment[]
rated: boolean
rawLetterGrade?: string; rawLetterGrade?: string
rawNumericGrade?: number; rawNumericGrade?: number
level: string; level: string
scaleUp: number; scaleUp: number
termGrading: Grading[]; termGrading: Grading[]
termAssignments: Assignment[][]; termAssignments: Assignment[][]
cache: CacheUtils = new CacheUtils(); cache: CacheUtils = new CacheUtils();
@@ -189,6 +190,7 @@ export default class Course
this.name = FormatUtils.parseText(courseJson.name).trim(); this.name = FormatUtils.parseText(courseJson.name).trim();
this.teacherName = courseJson.teacherName; this.teacherName = courseJson.teacherName;
this.status = courseJson.status; this.status = courseJson.status;
this.rated = courseJson.rated;
this.rawLetterGrade = courseJson.letterGrade; this.rawLetterGrade = courseJson.letterGrade;
this.rawNumericGrade = courseJson.numericGrade; this.rawNumericGrade = courseJson.numericGrade;