2018-08-14 07:59:53 -05:00
|
|
|
import { Actor } from '../../actors/actor.model'
|
2021-04-06 04:35:56 -05:00
|
|
|
import { Account, ActorImage } from '../../actors'
|
2017-10-24 12:41:09 -05:00
|
|
|
|
2020-03-30 05:06:46 -05:00
|
|
|
export type ViewsPerDate = {
|
2020-03-23 04:14:05 -05:00
|
|
|
date: Date
|
|
|
|
views: number
|
|
|
|
}
|
|
|
|
|
2018-01-11 02:35:50 -06:00
|
|
|
export interface VideoChannel extends Actor {
|
|
|
|
displayName: string
|
2017-10-24 12:41:09 -05:00
|
|
|
description: string
|
2018-02-15 07:46:26 -06:00
|
|
|
support: string
|
2017-10-24 12:41:09 -05:00
|
|
|
isLocal: boolean
|
2018-05-23 04:38:00 -05:00
|
|
|
ownerAccount?: Account
|
2020-06-16 07:13:01 -05:00
|
|
|
|
|
|
|
videosCount?: number
|
2020-03-30 05:06:46 -05:00
|
|
|
viewsPerDay?: ViewsPerDate[] // chronologically ordered
|
2017-10-24 12:41:09 -05:00
|
|
|
}
|
2019-02-26 03:55:40 -06:00
|
|
|
|
|
|
|
export interface VideoChannelSummary {
|
|
|
|
id: number
|
|
|
|
name: string
|
|
|
|
displayName: string
|
|
|
|
url: string
|
|
|
|
host: string
|
2021-04-06 04:35:56 -05:00
|
|
|
avatar?: ActorImage
|
2019-02-26 03:55:40 -06:00
|
|
|
}
|