diff options
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 | ||