1 import { Video } from '@app/shared/shared-main'
2 import { VideoPlaylistElement as ServerVideoPlaylistElement, VideoPlaylistElementType } from '@shared/models'
4 export class VideoPlaylistElement implements ServerVideoPlaylistElement {
10 type: VideoPlaylistElementType
14 constructor (hash: ServerVideoPlaylistElement, translations: { [ id: string ]: string } = {}) {
16 this.position = hash.position
17 this.startTimestamp = hash.startTimestamp
18 this.stopTimestamp = hash.stopTimestamp
22 if (hash.video) this.video = new Video(hash.video, translations)