From 90e3f936fc9e1024b83a4ac9e59ce53271f29785 Mon Sep 17 00:00:00 2001 From: Mohammed Abad Date: Sat, 6 Jul 2024 21:39:44 +0100 Subject: [PATCH] add two statistics models --- .../shared/models/statistics/watchCount.model.ts | 7 +++++++ .../shared/models/statistics/watchTime.model.ts | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 frontend/src/app/shared/models/statistics/watchCount.model.ts create mode 100644 frontend/src/app/shared/models/statistics/watchTime.model.ts diff --git a/frontend/src/app/shared/models/statistics/watchCount.model.ts b/frontend/src/app/shared/models/statistics/watchCount.model.ts new file mode 100644 index 0000000..1e4e751 --- /dev/null +++ b/frontend/src/app/shared/models/statistics/watchCount.model.ts @@ -0,0 +1,7 @@ +export interface WatchCount { + year: number; + movies: number[]; + series: number[]; + moviesTotal: number; + seriesTotal: number; +} \ No newline at end of file diff --git a/frontend/src/app/shared/models/statistics/watchTime.model.ts b/frontend/src/app/shared/models/statistics/watchTime.model.ts new file mode 100644 index 0000000..27b6981 --- /dev/null +++ b/frontend/src/app/shared/models/statistics/watchTime.model.ts @@ -0,0 +1,14 @@ +export interface WatchTime { + allTime: { + series: number; + movies: number; + total: number; + }; + yearly: { + year: number; + series: number[]; + movies: number[]; + seriesTotal: number; + moviesTotal: number; + }; +}