diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-05 10:58:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa (patch) | |
tree | c4984e854f5dc18e5c27afd73b843bd52c143034 /shared/models/videos | |
parent | 07b1a18aa678d260009a93e36606c5c5f585723d (diff) | |
download | PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.gz PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.zst PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.zip |
Add playlist rest tests
Diffstat (limited to 'shared/models/videos')
-rw-r--r-- | shared/models/videos/playlist/video-playlist-type.model.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/playlist/video-playlist.model.ts | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/shared/models/videos/playlist/video-playlist-type.model.ts b/shared/models/videos/playlist/video-playlist-type.model.ts new file mode 100644 index 000000000..49233b743 --- /dev/null +++ b/shared/models/videos/playlist/video-playlist-type.model.ts | |||
@@ -0,0 +1,4 @@ | |||
1 | export enum VideoPlaylistType { | ||
2 | REGULAR = 1, | ||
3 | WATCH_LATER = 2 | ||
4 | } | ||
diff --git a/shared/models/videos/playlist/video-playlist.model.ts b/shared/models/videos/playlist/video-playlist.model.ts index 6aa04048c..7fec0e42b 100644 --- a/shared/models/videos/playlist/video-playlist.model.ts +++ b/shared/models/videos/playlist/video-playlist.model.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { AccountSummary } from '../../actors/index' | 1 | import { AccountSummary } from '../../actors/index' |
2 | import { VideoChannelSummary, VideoConstant } from '..' | 2 | import { VideoChannelSummary, VideoConstant } from '..' |
3 | import { VideoPlaylistPrivacy } from './video-playlist-privacy.model' | 3 | import { VideoPlaylistPrivacy } from './video-playlist-privacy.model' |
4 | import { VideoPlaylistType } from './video-playlist-type.model' | ||
4 | 5 | ||
5 | export interface VideoPlaylist { | 6 | export interface VideoPlaylist { |
6 | id: number | 7 | id: number |
@@ -15,6 +16,8 @@ export interface VideoPlaylist { | |||
15 | 16 | ||
16 | videosLength: number | 17 | videosLength: number |
17 | 18 | ||
19 | type: VideoConstant<VideoPlaylistType> | ||
20 | |||
18 | createdAt: Date | string | 21 | createdAt: Date | string |
19 | updatedAt: Date | string | 22 | updatedAt: Date | string |
20 | 23 | ||