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



               

                                             
                     
                 
                  


                          
                        

                      
                                                         
                     
 



                                    
 


                                      



                     




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

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

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

  updatedAt: Date | string

  ownerAccount?: Account

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

  banners: ActorImage[]

  // TODO: remove, deprecated in 4.2
  banner: ActorImage
}

export interface VideoChannelSummary {
  id: number
  name: string
  displayName: string
  url: string
  host: string

  avatars: ActorImage[]

  // TODO: remove, deprecated in 4.2
  avatar: ActorImage
}