PeerTube/shared/models/videos/channel/video-channel.model.ts

29 lines
570 B
TypeScript
Raw Normal View History

2018-08-14 12:59:53 +00:00
import { Actor } from '../../actors/actor.model'
import { Account } from '../../actors/index'
2019-02-26 09:55:40 +00:00
import { Avatar } from '../../avatars'
2017-10-24 17:41:09 +00:00
export type ViewsPerDate = {
2020-03-23 09:14:05 +00:00
date: Date
views: number
}
export interface VideoChannel extends Actor {
displayName: string
2017-10-24 17:41:09 +00:00
description: string
support: string
2017-10-24 17:41:09 +00:00
isLocal: boolean
2018-05-23 09:38:00 +00:00
ownerAccount?: Account
2020-06-16 12:13:01 +00:00
videosCount?: number
viewsPerDay?: ViewsPerDate[] // chronologically ordered
2017-10-24 17:41:09 +00:00
}
2019-02-26 09:55:40 +00:00
export interface VideoChannelSummary {
id: number
name: string
displayName: string
url: string
host: string
avatar?: Avatar
}