1 import { VideoPlaylistElement as ServerVideoPlaylistElement, VideoPlaylistElementType } from '../../../../../shared/models/videos'
2 import { Video } from '@app/shared/video/video.model'
4 export class VideoPlaylistElement implements ServerVideoPlaylistElement {
10 type: VideoPlaylistElementType
14 constructor (hash: ServerVideoPlaylistElement, translations: {}) {
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)