1 import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos'
2 import { Actor } from '../actor/actor.model'
3 import { Account } from '../../../../../shared/models/actors'
5 export class VideoChannel extends Actor implements ServerVideoChannel {
10 ownerAccount?: Account
12 ownerAvatarUrl?: string
14 constructor (hash: ServerVideoChannel) {
17 this.displayName = hash.displayName
18 this.description = hash.description
19 this.support = hash.support
20 this.isLocal = hash.isLocal
22 if (hash.ownerAccount) {
23 this.ownerAccount = hash.ownerAccount
24 this.ownerBy = Actor.CREATE_BY_STRING(hash.ownerAccount.name, hash.ownerAccount.host)
25 this.ownerAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.ownerAccount)