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




                            

                                             
                     
                 
                  
                        
                                                         
 


                                      





                     
import { Actor } from '../../actors/actor.model'
import { Account } from '../../actors/index'
import { Avatar } from '../../avatars'

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

export interface VideoChannel extends Actor {
  displayName: string
  description: string
  support: string
  isLocal: boolean
  ownerAccount?: Account
  viewsPerDay?: viewsPerTime[] // chronologically ordered
}

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