aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/playlist/video-playlist-element.model.ts
blob: df9e3b5cf74f9228b56efb85c2ac19faae4d3199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Video } from '../video.model'

export const enum VideoPlaylistElementType {
  REGULAR = 0,
  DELETED = 1,
  PRIVATE = 2,
  UNAVAILABLE = 3 // Blacklisted, blocked by the user/instance, NSFW...
}

export interface VideoPlaylistElement {
  id: number
  position: number
  startTimestamp: number
  stopTimestamp: number

  type: VideoPlaylistElementType

  video?: Video
}