diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-06 13:06:13 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-06 13:34:08 +0100 |
commit | 51b34a11b298b466faef9c8d24beec4442d7add3 (patch) | |
tree | 57f9969eb5eb31f9b7cd8f1185927b105a3de809 /shared/models | |
parent | 46db9430af70f45bc656cb0ac8e519f5d0be0149 (diff) | |
download | PeerTube-51b34a11b298b466faef9c8d24beec4442d7add3.tar.gz PeerTube-51b34a11b298b466faef9c8d24beec4442d7add3.tar.zst PeerTube-51b34a11b298b466faef9c8d24beec4442d7add3.zip |
Share playlists state
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/users/user.model.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/playlist/video-exist-in-playlist.model.ts | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 328b69df6..168851196 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -57,5 +57,3 @@ export interface MyUserSpecialPlaylist { | |||
57 | export interface MyUser extends User { | 57 | export interface MyUser extends User { |
58 | specialPlaylists: MyUserSpecialPlaylist[] | 58 | specialPlaylists: MyUserSpecialPlaylist[] |
59 | } | 59 | } |
60 | |||
61 | |||
diff --git a/shared/models/videos/playlist/video-exist-in-playlist.model.ts b/shared/models/videos/playlist/video-exist-in-playlist.model.ts index 1b57257e2..fc979c8c0 100644 --- a/shared/models/videos/playlist/video-exist-in-playlist.model.ts +++ b/shared/models/videos/playlist/video-exist-in-playlist.model.ts | |||
@@ -1,8 +1,10 @@ | |||
1 | export type VideosExistInPlaylists = { | ||
2 | [videoId: number ]: VideoExistInPlaylist[] | ||
3 | } | ||
4 | |||
1 | export type VideoExistInPlaylist = { | 5 | export type VideoExistInPlaylist = { |
2 | [videoId: number ]: { | 6 | playlistElementId: number |
3 | playlistElementId: number | 7 | playlistId: number |
4 | playlistId: number | 8 | startTimestamp?: number |
5 | startTimestamp?: number | 9 | stopTimestamp?: number |
6 | stopTimestamp?: number | ||
7 | }[] | ||
8 | } | 10 | } |