diff options
Diffstat (limited to 'shared/models/videos/channel')
-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 { |