aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/videos/video.model.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index 707cd42a7..6a096195f 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -3,10 +3,14 @@ import { Avatar } from '../avatars/avatar.model'
3import { VideoChannel } from './video-channel.model' 3import { VideoChannel } from './video-channel.model'
4import { VideoPrivacy } from './video-privacy.enum' 4import { VideoPrivacy } from './video-privacy.enum'
5 5
6export interface VideoConstant <T> {
7 id: number
8 label: string
9}
10
6export interface VideoFile { 11export interface VideoFile {
7 magnetUri: string 12 magnetUri: string
8 resolution: number 13 resolution: VideoConstant<number>
9 resolutionLabel: string
10 size: number // Bytes 14 size: number // Bytes
11 torrentUrl: string 15 torrentUrl: string
12 fileUrl: string 16 fileUrl: string
@@ -17,12 +21,9 @@ export interface Video {
17 uuid: string 21 uuid: string
18 createdAt: Date | string 22 createdAt: Date | string
19 updatedAt: Date | string 23 updatedAt: Date | string
20 categoryLabel: string 24 category: VideoConstant<number>
21 category: number 25 licence: VideoConstant<number>
22 licenceLabel: string 26 language: VideoConstant<number>
23 licence: number
24 languageLabel: string
25 language: number
26 description: string 27 description: string
27 duration: number 28 duration: number
28 isLocal: boolean 29 isLocal: boolean
@@ -45,8 +46,7 @@ export interface Video {
45} 46}
46 47
47export interface VideoDetails extends Video { 48export interface VideoDetails extends Video {
48 privacy: VideoPrivacy 49 privacy: VideoConstant<VideoPrivacy>
49 privacyLabel: string
50 descriptionPath: string 50 descriptionPath: string
51 support: string 51 support: string
52 channel: VideoChannel 52 channel: VideoChannel