blob: f30d8febaf2d4366575a4d4b49146847f38ca7eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
export class VideoEdit {
category: number
licence: number
language: number
description: string
name: string
tags: string[]
nsfw: boolean
channel: number
uuid?: string
id?: number
patch (values: Object) {
Object.keys(values).forEach((key) => {
this[key] = values[key]
})
}
toJSON () {
return {
category: this.category,
licence: this.licence,
language: this.language,
description: this.description,
name: this.name,
tags: this.tags,
nsfw: this.nsfw,
channel: this.channel
}
}
}
|