diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/users/index.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-watching-video.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/video.model.ts | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/shared/models/users/index.ts b/shared/models/users/index.ts index 15c2f99c2..7114741e0 100644 --- a/shared/models/users/index.ts +++ b/shared/models/users/index.ts | |||
@@ -7,3 +7,4 @@ export * from './user-update-me.model' | |||
7 | export * from './user-right.enum' | 7 | export * from './user-right.enum' |
8 | export * from './user-role' | 8 | export * from './user-role' |
9 | export * from './user-video-quota.model' | 9 | export * from './user-video-quota.model' |
10 | export * from './user-watching-video.model' | ||
diff --git a/shared/models/users/user-watching-video.model.ts b/shared/models/users/user-watching-video.model.ts new file mode 100644 index 000000000..c22480595 --- /dev/null +++ b/shared/models/users/user-watching-video.model.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export interface UserWatchingVideo { | ||
2 | currentTime: number | ||
3 | } | ||
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index b47ab1ab8..4a9fa58b1 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -68,6 +68,10 @@ export interface Video { | |||
68 | 68 | ||
69 | account: AccountAttribute | 69 | account: AccountAttribute |
70 | channel: VideoChannelAttribute | 70 | channel: VideoChannelAttribute |
71 | |||
72 | userHistory?: { | ||
73 | currentTime: number | ||
74 | } | ||
71 | } | 75 | } |
72 | 76 | ||
73 | export interface VideoDetails extends Video { | 77 | export interface VideoDetails extends Video { |