C# Class Music.TrackManager

The class used for managing the play queue
Afficher le fichier Open project: rit-sse-mycroft/app-music

Méthodes publiques

Méthode 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 méthode

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

AddTrack() public méthode

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

Clear() public méthode

Clears the entire play queue
public Clear ( ) : void
Résultat void

Dequeue() public méthode

Gets the next song to play in the play queue
public Dequeue ( ) : Track
Résultat Track

IsEmpty() public méthode

Is the play queue Empty?
public IsEmpty ( ) : bool
Résultat bool

PlayAlbum() public méthode

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

PlayTrack() public méthode

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

TrackManager() public méthode

Create a new Track Maangager
public TrackManager ( ) : SpotiFire
Résultat SpotiFire