-
Notifications
You must be signed in to change notification settings - Fork 4
Playlist Session Schema
Daria Derecha edited this page May 24, 2020
·
2 revisions
This schema represents the JSON data object associated with the notion of a playlist session:
playlistURI: { type: String } - unique URI of a sessioned playlist
hostID: { type: String } - ID of the owner of the playlist
joinCode: { type: String, unique: true } - unique code that is to be used to join the session
isLiveMode: { type: Boolean } - whether the playlist is currently in live mode
currentTrackChoiceURIs: [{ type: String }] - URI of the track that has been chosen to play
votes: [{ type: Schema.Types.ObjectId, ref: 'Vote' }] - reference to the votes object that contains info about the current track vote
tracksToBeAdded: [] - track that were added via the app's interface and need to be send to Spotify API