aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-19 10:24:12 +0100
committerChocobozzz <me@florianbigard.com>2018-03-19 10:32:51 +0100
commitae5a3dd6642c8d5abc87b874496026dc9ed37d2d (patch)
tree10285733f8560d3cfad2ffbab88296689ad3ea55 /shared
parentf47776e265a45859aaf8519d7de85c6f35fdf40a (diff)
downloadPeerTube-ae5a3dd6642c8d5abc87b874496026dc9ed37d2d.tar.gz
PeerTube-ae5a3dd6642c8d5abc87b874496026dc9ed37d2d.tar.zst
PeerTube-ae5a3dd6642c8d5abc87b874496026dc9ed37d2d.zip
Update videos response api
Diffstat (limited to 'shared')
-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