]>
Commit | Line | Data |
---|---|---|
50d6de9c | 1 | import { Account } from '../actors' |
72c7248b | 2 | import { VideoChannel } from './video-channel.model' |
fd45e8f4 | 3 | import { VideoPrivacy } from './video-privacy.enum' |
72c7248b | 4 | |
93e1258c C |
5 | export interface VideoFile { |
6 | magnetUri: string | |
7 | resolution: number | |
8 | resolutionLabel: string | |
9 | size: number // Bytes | |
a96aed15 C |
10 | torrentUrl: string |
11 | fileUrl: string | |
93e1258c C |
12 | } |
13 | ||
69818c93 | 14 | export interface Video { |
0a6658fd C |
15 | id: number |
16 | uuid: string | |
b1fa3eba | 17 | accountName: string |
d592e0a9 C |
18 | createdAt: Date | string |
19 | updatedAt: Date | string | |
69f616ab C |
20 | categoryLabel: string |
21 | category: number | |
22 | licenceLabel: string | |
23 | licence: number | |
24 | languageLabel: string | |
25 | language: number | |
26 | description: string | |
27 | duration: number | |
28 | isLocal: boolean | |
69f616ab | 29 | name: string |
60862425 | 30 | serverHost: string |
69f616ab | 31 | thumbnailPath: string |
f981dae8 | 32 | previewPath: string |
d8755eed | 33 | embedPath: string |
69f616ab C |
34 | views: number |
35 | likes: number | |
36 | dislikes: number | |
37 | nsfw: boolean | |
72c7248b C |
38 | } |
39 | ||
40 | export interface VideoDetails extends Video { | |
fd45e8f4 C |
41 | privacy: VideoPrivacy |
42 | privacyLabel: string | |
43 | descriptionPath: string | |
72c7248b | 44 | channel: VideoChannel |
d48ff09d | 45 | tags: string[] |
93e1258c | 46 | files: VideoFile[] |
b1fa3eba | 47 | account: Account |
69818c93 | 48 | } |