]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - 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
1import { Actor } from '../../actors/actor.model'
2import { Account } from '../../actors/index'
3import { Avatar } from '../../avatars'
4
5export type ViewsPerDate = {
6 date: Date
7 views: number
8}
9
10export 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
21export interface VideoChannelSummary {
22 id: number
23 name: string
24 displayName: string
25 url: string
26 host: string
27 avatar?: Avatar
28}