aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/videos/playlist/video-playlist-element.model.ts
blob: 9a120389203dbfdabe0e3c8cf57f4597d8fbc48c (plain) (tree)


















                                                                       
import { Video } from '../video.model'

export 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
}