]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/video.model.ts
Merge branch 'feature/design' into develop
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video.model.ts
1 import { Account } from '../accounts'
2 import { VideoChannel } from './video-channel.model'
3 import { VideoPrivacy } from './video-privacy.enum'
4
5 export interface VideoFile {
6 magnetUri: string
7 resolution: number
8 resolutionLabel: string
9 size: number // Bytes
10 torrentUrl: string
11 fileUrl: string
12 }
13
14 export interface Video {
15 id: number
16 uuid: string
17 accountName: string
18 createdAt: Date | string
19 updatedAt: Date | string
20 categoryLabel: string
21 category: number
22 licenceLabel: string
23 licence: number
24 languageLabel: string
25 language: number
26 description: string
27 duration: number
28 isLocal: boolean
29 name: string
30 serverHost: string
31 tags: string[]
32 thumbnailPath: string
33 previewPath: string
34 embedPath: string
35 views: number
36 likes: number
37 dislikes: number
38 nsfw: boolean
39 }
40
41 export interface VideoDetails extends Video {
42 privacy: VideoPrivacy
43 privacyLabel: string
44 descriptionPath: string
45 channel: VideoChannel
46 files: VideoFile[]
47 account: Account
48 }