aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/video.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos/video.model.ts')
-rw-r--r--shared/models/videos/video.model.ts41
1 files changed, 22 insertions, 19 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index 8e1fbe444..b47ab1ab8 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -17,6 +17,26 @@ export interface VideoFile {
17 fps: number 17 fps: number
18} 18}
19 19
20export interface VideoChannelAttribute {
21 id: number
22 uuid: string
23 name: string
24 displayName: string
25 url: string
26 host: string
27 avatar: Avatar
28}
29
30export interface AccountAttribute {
31 id: number
32 uuid: string
33 name: string
34 displayName: string
35 url: string
36 host: string
37 avatar: Avatar
38}
39
20export interface Video { 40export interface Video {
21 id: number 41 id: number
22 uuid: string 42 uuid: string
@@ -46,25 +66,8 @@ export interface Video {
46 blacklisted?: boolean 66 blacklisted?: boolean
47 blacklistedReason?: string 67 blacklistedReason?: string
48 68
49 account: { 69 account: AccountAttribute
50 id: number 70 channel: VideoChannelAttribute
51 uuid: string
52 name: string
53 displayName: string
54 url: string
55 host: string
56 avatar: Avatar
57 }
58
59 channel: {
60 id: number
61 uuid: string
62 name: string
63 displayName: string
64 url: string
65 host: string
66 avatar: Avatar
67 }
68} 71}
69 72
70export interface VideoDetails extends Video { 73export interface VideoDetails extends Video {