1 import { VideoDetails } from './video-details.model'
3 export class VideoEdit {
15 constructor (videoDetails: VideoDetails) {
16 this.id = videoDetails.id
17 this.uuid = videoDetails.uuid
18 this.category = videoDetails.category
19 this.licence = videoDetails.licence
20 this.language = videoDetails.language
21 this.description = videoDetails.description
22 this.name = videoDetails.name
23 this.tags = videoDetails.tags
24 this.nsfw = videoDetails.nsfw
25 this.channel = videoDetails.channel.id
28 patch (values: Object) {
29 Object.keys(values).forEach((key) => {
30 this[key] = values[key]
36 category: this.category,
37 licence: this.licence,
38 language: this.language,
39 description: this.description,