aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/video.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-19 11:04:40 +0100
committerChocobozzz <me@florianbigard.com>2018-03-19 11:04:40 +0100
commit09700934b90e2ac7b1b9ed1694d9d4d52735e2e1 (patch)
tree29ea9512fa34676a7194e9cb37d912b38266c9cc /shared/models/videos/video.model.ts
parentae5a3dd6642c8d5abc87b874496026dc9ed37d2d (diff)
downloadPeerTube-09700934b90e2ac7b1b9ed1694d9d4d52735e2e1.tar.gz
PeerTube-09700934b90e2ac7b1b9ed1694d9d4d52735e2e1.tar.zst
PeerTube-09700934b90e2ac7b1b9ed1694d9d4d52735e2e1.zip
BEARKING CHANGE: Update videos API response
before beta
Diffstat (limited to 'shared/models/videos/video.model.ts')
-rw-r--r--shared/models/videos/video.model.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index 6a096195f..ebd2813ca 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -1,3 +1,4 @@
1import { VideoResolution } from '../../index'
1import { Account } from '../actors' 2import { Account } from '../actors'
2import { Avatar } from '../avatars/avatar.model' 3import { Avatar } from '../avatars/avatar.model'
3import { VideoChannel } from './video-channel.model' 4import { VideoChannel } from './video-channel.model'
@@ -10,7 +11,7 @@ export interface VideoConstant <T> {
10 11
11export interface VideoFile { 12export interface VideoFile {
12 magnetUri: string 13 magnetUri: string
13 resolution: VideoConstant<number> 14 resolution: VideoConstant<VideoResolution>
14 size: number // Bytes 15 size: number // Bytes
15 torrentUrl: string 16 torrentUrl: string
16 fileUrl: string 17 fileUrl: string