[+] Encapsulate getGrading(term)
This commit is contained in:
+11
-1
@@ -103,7 +103,7 @@ export default class Course
|
|||||||
}
|
}
|
||||||
else this.level = 'Unknown';
|
else this.level = 'Unknown';
|
||||||
|
|
||||||
this.grading = new Array(4);
|
this.rawGrading = new Array(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -131,6 +131,16 @@ export default class Course
|
|||||||
this.computed = {termAssignments: termAssignments, allYearGrade: -1};
|
this.computed = {termAssignments: termAssignments, allYearGrade: -1};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get grading by term
|
||||||
|
*
|
||||||
|
* @param term
|
||||||
|
*/
|
||||||
|
getGrading(term: number)
|
||||||
|
{
|
||||||
|
return this.rawGrading[term];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is graded or not
|
* Is graded or not
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user