From 8165d00ac6263cf3c0d61d450960ef36635084ff Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 23 Mar 2020 10:14:05 +0100 Subject: View stats for channels --- shared/models/videos/channel/video-channel.model.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shared') diff --git a/shared/models/videos/channel/video-channel.model.ts b/shared/models/videos/channel/video-channel.model.ts index de4c26b3d..5fe6609d9 100644 --- a/shared/models/videos/channel/video-channel.model.ts +++ b/shared/models/videos/channel/video-channel.model.ts @@ -2,12 +2,18 @@ import { Actor } from '../../actors/actor.model' import { Account } from '../../actors/index' import { Avatar } from '../../avatars' +export type viewsPerTime = { + date: Date + views: number +} + export interface VideoChannel extends Actor { displayName: string description: string support: string isLocal: boolean ownerAccount?: Account + viewsPerDay?: viewsPerTime[] // chronologically ordered } export interface VideoChannelSummary { -- cgit v1.2.3