C# Class Espera.Core.Library.Library

Inheritance: IDisposable
Mostra file Open project: gazwinter/Espera

Public Methods

Method Description
AddLocalSongsAsync ( string path ) : Task

Adds the song that are contained in the specified directory recursively in an asynchronous manner to the library.

AddSongsToPlaylist ( IEnumerable songList ) : void

Adds the specified song to end of the playlist.

ChangeToAdmin ( string adminPassword ) : void

Logs the administrator with the specified password in.

ChangeToUser ( ) : void

Changes the access mode to user mode.

ContinueSong ( ) : void

Continues the currently loaded song.

CreateAdmin ( string adminPassword ) : void

Creates the administrator with the specified password.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Library ( ) : System

Initializes a new instance of the Library class.

PauseSong ( ) : void

Pauses the currently loaded song.

PlayNextSong ( ) : void

Plays the next song in the playlist.

PlayPreviousSong ( ) : void

Plays the previous song in the playlist.

PlaySong ( int playlistIndex ) : void

Plays the song with the specified index in the playlist.

RemoveFromLibrary ( IEnumerable songList ) : void

Removes the specified songs from the library.

RemoveFromPlaylist ( IEnumerable songList ) : void

Removes the specified songs from the playlist.

RemoveFromPlaylist ( IEnumerable indexes ) : void

Removes the songs with the specified indexes from the playlist.

Private Methods

Method Description
AddLocalSongs ( string path ) : void

Adds the song that are contained in the specified directory recursively to the library.

DisposeSongs ( IEnumerable songList ) : void
HandleSongFinish ( ) : void
InternPlayNextSong ( ) : void
InternPlaySong ( int playlistIndex ) : void
Update ( ) : void

Method Details

AddLocalSongsAsync() public method

Adds the song that are contained in the specified directory recursively in an asynchronous manner to the library.
public AddLocalSongsAsync ( string path ) : Task
path string The path of the directory to search.
return Task

AddSongsToPlaylist() public method

Adds the specified song to end of the playlist.
public AddSongsToPlaylist ( IEnumerable songList ) : void
songList IEnumerable The songs to add to the end of the playlist.
return void

ChangeToAdmin() public method

Logs the administrator with the specified password in.
public ChangeToAdmin ( string adminPassword ) : void
adminPassword string The administrator password.
return void

ChangeToUser() public method

Changes the access mode to user mode.
public ChangeToUser ( ) : void
return void

ContinueSong() public method

Continues the currently loaded song.
public ContinueSong ( ) : void
return void

CreateAdmin() public method

Creates the administrator with the specified password.
public CreateAdmin ( string adminPassword ) : void
adminPassword string The administrator password.
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Library() public method

Initializes a new instance of the Library class.
public Library ( ) : System
return System

PauseSong() public method

Pauses the currently loaded song.
public PauseSong ( ) : void
return void

PlayNextSong() public method

Plays the next song in the playlist.
public PlayNextSong ( ) : void
return void

PlayPreviousSong() public method

Plays the previous song in the playlist.
public PlayPreviousSong ( ) : void
return void

PlaySong() public method

Plays the song with the specified index in the playlist.
public PlaySong ( int playlistIndex ) : void
playlistIndex int The index of the song in the playlist.
return void

RemoveFromLibrary() public method

Removes the specified songs from the library.
public RemoveFromLibrary ( IEnumerable songList ) : void
songList IEnumerable The list of the songs to remove from the library.
return void

RemoveFromPlaylist() public method

Removes the specified songs from the playlist.
public RemoveFromPlaylist ( IEnumerable songList ) : void
songList IEnumerable The songs to remove.
return void

RemoveFromPlaylist() public method

Removes the songs with the specified indexes from the playlist.
public RemoveFromPlaylist ( IEnumerable indexes ) : void
indexes IEnumerable The indexes of the songs to remove from the playlist.
return void