From 764a965778ac89e027fd05dd35697c6763e0dc18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 11 Mar 2020 14:39:28 +0100 Subject: Implement pagination for overviews endpoint --- shared/models/overviews/videos-overview.ts | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'shared/models/overviews/videos-overview.ts') diff --git a/shared/models/overviews/videos-overview.ts b/shared/models/overviews/videos-overview.ts index e725f166b..0f3cb4a52 100644 --- a/shared/models/overviews/videos-overview.ts +++ b/shared/models/overviews/videos-overview.ts @@ -1,18 +1,24 @@ import { Video, VideoChannelSummary, VideoConstant } from '../videos' +export interface ChannelOverview { + channel: VideoChannelSummary + videos: Video[] +} + +export interface CategoryOverview { + category: VideoConstant + videos: Video[] +} + +export interface TagOverview { + tag: string + videos: Video[] +} + export interface VideosOverview { - channels: { - channel: VideoChannelSummary - videos: Video[] - }[] + channels: ChannelOverview[] - categories: { - category: VideoConstant - videos: Video[] - }[] + categories: CategoryOverview[] - tags: { - tag: string - videos: Video[] - }[] + tags: TagOverview[] } -- cgit v1.2.3