]>
Commit | Line | Data |
---|---|---|
1 | import { Actor } from '../../actors/actor.model' | |
2 | import { Account } from '../../actors/index' | |
3 | import { Avatar } from '../../avatars' | |
4 | ||
5 | export type viewsPerTime = { | |
6 | date: Date | |
7 | views: number | |
8 | } | |
9 | ||
10 | export interface VideoChannel extends Actor { | |
11 | displayName: string | |
12 | description: string | |
13 | support: string | |
14 | isLocal: boolean | |
15 | ownerAccount?: Account | |
16 | viewsPerDay?: viewsPerTime[] // chronologically ordered | |
17 | } | |
18 | ||
19 | export interface VideoChannelSummary { | |
20 | id: number | |
21 | name: string | |
22 | displayName: string | |
23 | url: string | |
24 | host: string | |
25 | avatar?: Avatar | |
26 | } |