From ae5a3dd6642c8d5abc87b874496026dc9ed37d2d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Mar 2018 10:24:12 +0100 Subject: Update videos response api --- shared/models/videos/video.model.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'shared/models/videos/video.model.ts') diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 707cd42a7..6a096195f 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -3,10 +3,14 @@ import { Avatar } from '../avatars/avatar.model' import { VideoChannel } from './video-channel.model' import { VideoPrivacy } from './video-privacy.enum' +export interface VideoConstant { + id: number + label: string +} + export interface VideoFile { magnetUri: string - resolution: number - resolutionLabel: string + resolution: VideoConstant size: number // Bytes torrentUrl: string fileUrl: string @@ -17,12 +21,9 @@ export interface Video { uuid: string createdAt: Date | string updatedAt: Date | string - categoryLabel: string - category: number - licenceLabel: string - licence: number - languageLabel: string - language: number + category: VideoConstant + licence: VideoConstant + language: VideoConstant description: string duration: number isLocal: boolean @@ -45,8 +46,7 @@ export interface Video { } export interface VideoDetails extends Video { - privacy: VideoPrivacy - privacyLabel: string + privacy: VideoConstant descriptionPath: string support: string channel: VideoChannel -- cgit v1.2.3