]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/channel/video-channel.model.ts
Agnostic actor image storage
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
1 import { Actor } from '../../actors/actor.model'
2 import { Account, ActorImage } from '../../actors'
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 ownerAccount?: Account
15
16 videosCount?: number
17 viewsPerDay?: ViewsPerDate[] // chronologically ordered
18 }
19
20 export interface VideoChannelSummary {
21 id: number
22 name: string
23 displayName: string
24 url: string
25 host: string
26 avatar?: ActorImage
27 }