aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-06 13:06:13 +0100
committerChocobozzz <me@florianbigard.com>2020-01-06 13:34:08 +0100
commit51b34a11b298b466faef9c8d24beec4442d7add3 (patch)
tree57f9969eb5eb31f9b7cd8f1185927b105a3de809 /shared/models
parent46db9430af70f45bc656cb0ac8e519f5d0be0149 (diff)
downloadPeerTube-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.ts2
-rw-r--r--shared/models/videos/playlist/video-exist-in-playlist.model.ts14
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 {
57export interface MyUser extends User { 57export 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 @@
1export type VideosExistInPlaylists = {
2 [videoId: number ]: VideoExistInPlaylist[]
3}
4
1export type VideoExistInPlaylist = { 5export 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}