]>
Commit | Line | Data |
---|---|---|
1 | import { Account, ActorImage } from '../../actors' | |
2 | import { Actor } from '../../actors/actor.model' | |
3 | ||
4 | export type ViewsPerDate = { | |
5 | date: Date | |
6 | views: number | |
7 | } | |
8 | ||
9 | export interface VideoChannel extends Actor { | |
10 | displayName: string | |
11 | description: string | |
12 | support: string | |
13 | isLocal: boolean | |
14 | ||
15 | updatedAt: Date | string | |
16 | ||
17 | ownerAccount?: Account | |
18 | ||
19 | videosCount?: number | |
20 | viewsPerDay?: ViewsPerDate[] // chronologically ordered | |
21 | totalViews?: number | |
22 | ||
23 | banners: ActorImage[] | |
24 | ||
25 | // TODO: remove, deprecated in 4.2 | |
26 | banner: ActorImage | |
27 | } | |
28 | ||
29 | export interface VideoChannelSummary { | |
30 | id: number | |
31 | name: string | |
32 | displayName: string | |
33 | url: string | |
34 | host: string | |
35 | ||
36 | avatars: ActorImage[] | |
37 | ||
38 | // TODO: remove, deprecated in 4.2 | |
39 | avatar: ActorImage | |
40 | } |