Home Reference Source Repository
public class | source

Playlist

You can directly use instance of this class. playlist

Extends:

src/entities/PlaylistEntity~PlaylistEntity → Playlist

Add helpers methods to PlaylistEntity

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

Get a list of Tracks of a Playlist.

Method Summary

Public Methods
public

addTrack(tracks: Array, query: Object): Promise

Add one or more Tracks to a Playlist.

public

Edit a Playlist

public

follow(query: Object): Promise

Follow a Playlist

public

removeTrack(tracks: Array, query: Object): Promise

Remove one or more Tracks to a Playlist.

public

Unfollow a Playlist

Public Constructors

public constructor(data: Object) source

Params:

NameTypeAttributeDescription
data Object

Playlist object

Public Members

public get tracks: Promise: * source

Get a list of Tracks of a Playlist.

Return:

Promise

Public Methods

public addTrack(tracks: Array, query: Object): Promise source

Add one or more Tracks to a Playlist.

Params:

NameTypeAttributeDescription
tracks Array

Tracks list

query Object
  • optional

Query parameters.

Return:

Promise

public edit(): Promise source

Edit a Playlist

Return:

Promise

public follow(query: Object): Promise source

Follow a Playlist

Params:

NameTypeAttributeDescription
query Object
  • optional

query parameters.

Return:

Promise

public removeTrack(tracks: Array, query: Object): Promise source

Remove one or more Tracks to a Playlist.

Params:

NameTypeAttributeDescription
tracks Array

Tracks list

query Object
  • optional

Query parameters.

Return:

Promise

public unfollow(query: Object): Promise source

Unfollow a Playlist

Params:

NameTypeAttributeDescription
query Object
  • optional

Query parameters.

Return:

Promise