From 6e46de095d7169355dd83030f6ce4a582304153a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Oct 2018 11:15:06 +0200 Subject: Add user history and resume videos --- shared/models/users/index.ts | 1 + shared/models/users/user-watching-video.model.ts | 3 +++ shared/models/videos/video.model.ts | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 shared/models/users/user-watching-video.model.ts (limited to 'shared') 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' export * from './user-right.enum' export * from './user-role' export * from './user-video-quota.model' +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 @@ +export interface UserWatchingVideo { + currentTime: number +} 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 { account: AccountAttribute channel: VideoChannelAttribute + + userHistory?: { + currentTime: number + } } export interface VideoDetails extends Video { -- cgit v1.2.3