aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/videos/channel/video-channel.model.ts
blob: 56517972d8aa23fd008be925dcbc0b0119689d7c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                
                                                  
 
                            



               

                                             
                     
                 
                  
                        

                      
                                                         

                     
 


                                      



                     
                     
 
import { Actor } from '../../actors/actor.model'
import { Account, ActorImage } from '../../actors'

export type ViewsPerDate = {
  date: Date
  views: number
}

export interface VideoChannel extends Actor {
  displayName: string
  description: string
  support: string
  isLocal: boolean
  ownerAccount?: Account

  videosCount?: number
  viewsPerDay?: ViewsPerDate[] // chronologically ordered

  banner?: ActorImage
}

export interface VideoChannelSummary {
  id: number
  name: string
  displayName: string
  url: string
  host: string
  avatar?: ActorImage
}