import { VideoDetails } from './video-details.model'
+import { VideoPrivacy } from '../../../../../shared/models/videos/video-privacy.enum'
export class VideoEdit {
category: number
tags: string[]
nsfw: boolean
channel: number
+ privacy: VideoPrivacy
uuid?: string
id?: number
this.tags = videoDetails.tags
this.nsfw = videoDetails.nsfw
this.channel = videoDetails.channel.id
+ this.privacy = videoDetails.privacy
}
patch (values: Object) {
name: this.name,
tags: this.tags,
nsfw: this.nsfw,
- channel: this.channel
+ channel: this.channel,
+ privacy: this.privacy
}
}
}