diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-23 10:14:05 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-03-31 10:29:24 +0200 |
commit | 8165d00ac6263cf3c0d61d450960ef36635084ff (patch) | |
tree | c0587121cd8dbdfc246a5bc74c08805830140a77 /shared/models/videos/channel/video-channel.model.ts | |
parent | 628c155338cf106365a06ca021b9f244b784c003 (diff) | |
download | PeerTube-8165d00ac6263cf3c0d61d450960ef36635084ff.tar.gz PeerTube-8165d00ac6263cf3c0d61d450960ef36635084ff.tar.zst PeerTube-8165d00ac6263cf3c0d61d450960ef36635084ff.zip |
View stats for channels
Diffstat (limited to 'shared/models/videos/channel/video-channel.model.ts')
-rw-r--r-- | shared/models/videos/channel/video-channel.model.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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' | |||
2 | import { Account } from '../../actors/index' | 2 | import { Account } from '../../actors/index' |
3 | import { Avatar } from '../../avatars' | 3 | import { Avatar } from '../../avatars' |
4 | 4 | ||
5 | export type viewsPerTime = { | ||
6 | date: Date | ||
7 | views: number | ||
8 | } | ||
9 | |||
5 | export interface VideoChannel extends Actor { | 10 | export interface VideoChannel extends Actor { |
6 | displayName: string | 11 | displayName: string |
7 | description: string | 12 | description: string |
8 | support: string | 13 | support: string |
9 | isLocal: boolean | 14 | isLocal: boolean |
10 | ownerAccount?: Account | 15 | ownerAccount?: Account |
16 | viewsPerDay?: viewsPerTime[] // chronologically ordered | ||
11 | } | 17 | } |
12 | 18 | ||
13 | export interface VideoChannelSummary { | 19 | export interface VideoChannelSummary { |