PlaylistData

data. PlaylistData

The data schema for a Playlist document.

Constructor

new PlaylistData(data, documentopt)

See:
  • BasePlaylist
Properties:
Name Type Attributes Default Description
_id string

The _id which uniquely identifies this Playlist document

name string

The name of this playlist

sounds Collection.<BasePlaylistSound>

A Collection of PlaylistSounds embedded documents which belong to this playlist

mode number <optional>
0

The playback mode for sounds in this playlist

playing boolean <optional>
false

Is this playlist currently playing?

folder string | null

The _id of a Folder which contains this playlist

sort number <optional>

The numeric sort value which orders this playlist relative to its siblings

permission object <optional>

An object which configures user permissions to this playlist

flags object <optional>
{}

An object of optional key/value flags

Parameters:
Name Type Attributes Description
data object

Initial data used to construct the data object

document BasePlaylist <optional>

The document to which this data object belongs

Extends

  • DocumentData