2017-10-24 13:41:09 -04:00
|
|
|
import { VideoChannel } from './video-channel.model'
|
2017-10-31 06:52:52 -04:00
|
|
|
import { VideoPrivacy } from './video-privacy.enum'
|
2017-10-24 13:41:09 -04:00
|
|
|
|
2017-08-25 05:36:23 -04:00
|
|
|
export interface VideoFile {
|
|
|
|
magnetUri: string
|
|
|
|
resolution: number
|
|
|
|
resolutionLabel: string
|
|
|
|
size: number // Bytes
|
2017-10-19 08:58:28 -04:00
|
|
|
torrentUrl: string
|
|
|
|
fileUrl: string
|
2017-08-25 05:36:23 -04:00
|
|
|
}
|
|
|
|
|
2017-06-10 16:15:25 -04:00
|
|
|
export interface Video {
|
2017-07-11 10:01:56 -04:00
|
|
|
id: number
|
|
|
|
uuid: string
|
2017-11-09 11:51:58 -05:00
|
|
|
account: string
|
2017-09-14 05:57:49 -04:00
|
|
|
createdAt: Date | string
|
|
|
|
updatedAt: Date | string
|
2017-06-11 05:02:35 -04:00
|
|
|
categoryLabel: string
|
|
|
|
category: number
|
|
|
|
licenceLabel: string
|
|
|
|
licence: number
|
|
|
|
languageLabel: string
|
|
|
|
language: number
|
|
|
|
description: string
|
|
|
|
duration: number
|
|
|
|
isLocal: boolean
|
|
|
|
name: string
|
|
|
|
podHost: string
|
|
|
|
tags: string[]
|
|
|
|
thumbnailPath: string
|
2017-07-12 05:56:02 -04:00
|
|
|
previewPath: string
|
2017-10-16 04:05:49 -04:00
|
|
|
embedPath: string
|
2017-06-11 05:02:35 -04:00
|
|
|
views: number
|
|
|
|
likes: number
|
|
|
|
dislikes: number
|
|
|
|
nsfw: boolean
|
2017-10-24 13:41:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface VideoDetails extends Video {
|
2017-10-31 06:52:52 -04:00
|
|
|
privacy: VideoPrivacy
|
|
|
|
privacyLabel: string
|
|
|
|
descriptionPath: string
|
2017-10-24 13:41:09 -04:00
|
|
|
channel: VideoChannel
|
2017-08-25 05:36:23 -04:00
|
|
|
files: VideoFile[]
|
2017-06-10 16:15:25 -04:00
|
|
|
}
|