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