]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - shared/models/videos/channel/video-channel.model.ts
View stats for channels
[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 viewsPerTime = {
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 viewsPerDay?: viewsPerTime[] // chronologically ordered
17}
18
19export interface VideoChannelSummary {
20 id: number
21 name: string
22 displayName: string
23 url: string
24 host: string
25 avatar?: Avatar
26}