]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/shared/video-edit.model.ts
Adapt client with video channels
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / shared / video-edit.model.ts
1 export class VideoEdit {
2 category: number
3 licence: number
4 language: number
5 description: string
6 name: string
7 tags: string[]
8 nsfw: boolean
9 channel: number
10 uuid?: string
11 id?: number
12
13 patch (values: Object) {
14 Object.keys(values).forEach((key) => {
15 this[key] = values[key]
16 })
17 }
18
19 toJSON () {
20 return {
21 category: this.category,
22 licence: this.licence,
23 language: this.language,
24 description: this.description,
25 name: this.name,
26 tags: this.tags,
27 nsfw: this.nsfw,
28 channel: this.channel
29 }
30 }
31 }