]>
Commit | Line | Data |
---|---|---|
b1fa3eba | 1 | import { Account } from '../accounts' |
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 C |
31 | tags: string[] |
32 | thumbnailPath: string | |
f981dae8 | 33 | previewPath: string |
d8755eed | 34 | embedPath: string |
69f616ab C |
35 | views: number |
36 | likes: number | |
37 | dislikes: number | |
38 | nsfw: boolean | |
72c7248b C |
39 | } |
40 | ||
41 | export interface VideoDetails extends Video { | |
fd45e8f4 C |
42 | privacy: VideoPrivacy |
43 | privacyLabel: string | |
44 | descriptionPath: string | |
72c7248b | 45 | channel: VideoChannel |
93e1258c | 46 | files: VideoFile[] |
b1fa3eba | 47 | account: Account |
69818c93 | 48 | } |