C# Class Music.TrackManager

The class used for managing the play queue
Mostrar archivo Open project: rit-sse-mycroft/app-music

Public Methods

Method Description
AddAlbum ( Album album ) : System.Threading.Tasks.Task

Adds an album to the end of the play queue

AddTrack ( Track track ) : void

Adds a track to the end of the play queue

Clear ( ) : void

Clears the entire play queue

Dequeue ( ) : Track

Gets the next song to play in the play queue

IsEmpty ( ) : bool

Is the play queue Empty?

PlayAlbum ( Album album ) : Task

Adds an album to the beginning of the play queue

PlayTrack ( Track track ) : Track

Adds the track to the beginning of the play queue

TrackManager ( ) : SpotiFire

Create a new Track Maangager

Method Details

AddAlbum() public method

Adds an album to the end of the play queue
public AddAlbum ( Album album ) : System.Threading.Tasks.Task
album Album The album to add
return System.Threading.Tasks.Task

AddTrack() public method

Adds a track to the end of the play queue
public AddTrack ( Track track ) : void
track Track The track to add
return void

Clear() public method

Clears the entire play queue
public Clear ( ) : void
return void

Dequeue() public method

Gets the next song to play in the play queue
public Dequeue ( ) : Track
return Track

IsEmpty() public method

Is the play queue Empty?
public IsEmpty ( ) : bool
return bool

PlayAlbum() public method

Adds an album to the beginning of the play queue
public PlayAlbum ( Album album ) : Task
album Album The album to add
return Task

PlayTrack() public method

Adds the track to the beginning of the play queue
public PlayTrack ( Track track ) : Track
track Track The track to add
return Track

TrackManager() public method

Create a new Track Maangager
public TrackManager ( ) : SpotiFire
return SpotiFire