diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-26 10:55:40 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 418d092afa81e2c8fe8ac6838fc4b5eb0af6a782 (patch) | |
tree | 5e9bc5604fd5d66a006cfebb7acdbdd5486e5d1e /shared/models/videos/video.model.ts | |
parent | b427febb4d5cebf03b815bca2c59af6e82491569 (diff) | |
download | PeerTube-418d092afa81e2c8fe8ac6838fc4b5eb0af6a782.tar.gz PeerTube-418d092afa81e2c8fe8ac6838fc4b5eb0af6a782.tar.zst PeerTube-418d092afa81e2c8fe8ac6838fc4b5eb0af6a782.zip |
Playlist server API
Diffstat (limited to 'shared/models/videos/video.model.ts')
-rw-r--r-- | shared/models/videos/video.model.ts | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index df800461c..6e7a6831e 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { VideoResolution, VideoState } from '../../index' | 1 | import { AccountSummary, VideoChannelSummary, VideoResolution, VideoState } from '../../index' |
2 | import { Account } from '../actors' | 2 | import { Account } from '../actors' |
3 | import { Avatar } from '../avatars/avatar.model' | 3 | import { Avatar } from '../avatars/avatar.model' |
4 | import { VideoChannel } from './channel/video-channel.model' | 4 | import { VideoChannel } from './channel/video-channel.model' |
@@ -18,26 +18,6 @@ export interface VideoFile { | |||
18 | fps: number | 18 | fps: number |
19 | } | 19 | } |
20 | 20 | ||
21 | export interface VideoChannelAttribute { | ||
22 | id: number | ||
23 | uuid: string | ||
24 | name: string | ||
25 | displayName: string | ||
26 | url: string | ||
27 | host: string | ||
28 | avatar?: Avatar | ||
29 | } | ||
30 | |||
31 | export interface AccountAttribute { | ||
32 | id: number | ||
33 | uuid: string | ||
34 | name: string | ||
35 | displayName: string | ||
36 | url: string | ||
37 | host: string | ||
38 | avatar?: Avatar | ||
39 | } | ||
40 | |||
41 | export interface Video { | 21 | export interface Video { |
42 | id: number | 22 | id: number |
43 | uuid: string | 23 | uuid: string |
@@ -68,12 +48,18 @@ export interface Video { | |||
68 | blacklisted?: boolean | 48 | blacklisted?: boolean |
69 | blacklistedReason?: string | 49 | blacklistedReason?: string |
70 | 50 | ||
71 | account: AccountAttribute | 51 | account: AccountSummary |
72 | channel: VideoChannelAttribute | 52 | channel: VideoChannelSummary |
73 | 53 | ||
74 | userHistory?: { | 54 | userHistory?: { |
75 | currentTime: number | 55 | currentTime: number |
76 | } | 56 | } |
57 | |||
58 | playlistElement?: { | ||
59 | position: number | ||
60 | startTimestamp: number | ||
61 | stopTimestamp: number | ||
62 | } | ||
77 | } | 63 | } |
78 | 64 | ||
79 | export interface VideoDetails extends Video { | 65 | export interface VideoDetails extends Video { |