From d3e91a5f72ac9c986cdb67d7d6c85bb4819e680c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Apr 2018 15:43:19 +0200 Subject: Add video channel account list --- .../shared/video-channel/video-channel.model.ts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 client/src/app/shared/video-channel/video-channel.model.ts (limited to 'client/src/app/shared/video-channel/video-channel.model.ts') diff --git a/client/src/app/shared/video-channel/video-channel.model.ts b/client/src/app/shared/video-channel/video-channel.model.ts new file mode 100644 index 000000000..01381ac30 --- /dev/null +++ b/client/src/app/shared/video-channel/video-channel.model.ts @@ -0,0 +1,23 @@ +import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos/video-channel.model' +import { Actor } from '../actor/actor.model' + +export class VideoChannel extends Actor implements ServerVideoChannel { + displayName: string + description: string + support: string + isLocal: boolean + ownerAccount?: { + id: number + uuid: string + } + + constructor (hash: ServerVideoChannel) { + super(hash) + + this.displayName = hash.displayName + this.description = hash.description + this.support = hash.support + this.isLocal = hash.isLocal + this.ownerAccount = hash.ownerAccount + } +} -- cgit v1.2.3