aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/videos/playlist/video-playlist-element.model.ts
blob: df9e3b5cf74f9228b56efb85c2ac19faae4d3199 (plain) (tree)
1
2
3

                                      
                                            















                                                                       
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
}