From e3af901caf84c5c5902a19642c9ac8558d36fa55 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 27 Apr 2020 04:42:41 -0400 Subject: [PATCH] [+] Create AnalyzedRating class --- src/logic/course-info.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/logic/course-info.ts b/src/logic/course-info.ts index 99615b6..8608ccc 100644 --- a/src/logic/course-info.ts +++ b/src/logic/course-info.ts @@ -122,3 +122,10 @@ export class CourseInfoRating anonymous: false, ratings: [0,0,0,0,0], comment: ''}) } } + +export interface AnalyzedRating +{ + ratingCounts: number[][] + ratingSums: number[] + totalCount: number +}