]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/channel/video-channel.model.ts
Add videos count in channels list
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
1 import { Actor } from '../../actors/actor.model'
2 import { Account } from '../../actors/index'
3 import { Avatar } from '../../avatars'
4
5 export type ViewsPerDate = {
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
17 videosCount?: number
18 viewsPerDay?: ViewsPerDate[] // chronologically ordered
19 }
20
21 export interface VideoChannelSummary {
22 id: number
23 name: string
24 displayName: string
25 url: string
26 host: string
27 avatar?: Avatar
28 }