]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - 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
CommitLineData
59c76ffa 1import { Actor } from '../../actors/actor.model'
59c76ffa 2import { Account } from '../../actors/index'
418d092a 3import { Avatar } from '../../avatars'
72c7248b 4
3d527ba1 5export type ViewsPerDate = {
8165d00a
RK
6 date: Date
7 views: number
8}
9
60650c77
C
10export interface VideoChannel extends Actor {
11 displayName: string
72c7248b 12 description: string
2422c46b 13 support: string
72c7248b 14 isLocal: boolean
a4f99a76 15 ownerAccount?: Account
1ba471c5
C
16
17 videosCount?: number
3d527ba1 18 viewsPerDay?: ViewsPerDate[] // chronologically ordered
72c7248b 19}
418d092a
C
20
21export interface VideoChannelSummary {
22 id: number
418d092a
C
23 name: string
24 displayName: string
25 url: string
26 host: string
27 avatar?: Avatar
28}