]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video-channel/video-channel.model.ts
Use height instead of width to represent the video resolution
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video-channel / video-channel.model.ts
CommitLineData
e63dbd42 1import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos'
d3e91a5f 2import { Actor } from '../actor/actor.model'
a4f99a76 3import { Account } from '../../../../../shared/models/actors'
d3e91a5f
C
4
5export class VideoChannel extends Actor implements ServerVideoChannel {
6 displayName: string
7 description: string
8 support: string
9 isLocal: boolean
a4f99a76
C
10 ownerAccount?: Account
11 ownerBy?: string
12 ownerAvatarUrl?: string
d3e91a5f
C
13
14 constructor (hash: ServerVideoChannel) {
15 super(hash)
16
17 this.displayName = hash.displayName
18 this.description = hash.description
19 this.support = hash.support
20 this.isLocal = hash.isLocal
a4f99a76
C
21
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)
26 }
d3e91a5f
C
27 }
28}