import { VideoChannel } from './video-channel.model'
import { VideoPrivacy } from './video-privacy.enum'
+export interface VideoConstant <T> {
+ id: number
+ label: string
+}
+
export interface VideoFile {
magnetUri: string
- resolution: number
- resolutionLabel: string
+ resolution: VideoConstant<number>
size: number // Bytes
torrentUrl: string
fileUrl: string
uuid: string
createdAt: Date | string
updatedAt: Date | string
- categoryLabel: string
- category: number
- licenceLabel: string
- licence: number
- languageLabel: string
- language: number
+ category: VideoConstant<number>
+ licence: VideoConstant<number>
+ language: VideoConstant<number>
description: string
duration: number
isLocal: boolean
}
export interface VideoDetails extends Video {
- privacy: VideoPrivacy
- privacyLabel: string
+ privacy: VideoConstant<VideoPrivacy>
descriptionPath: string
support: string
channel: VideoChannel