C# Класс Espera.Core.Library.Library

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddLocalSongsAsync() публичный Метод

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.
Результат Task

AddSongsToPlaylist() публичный Метод

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.
Результат void

ChangeToAdmin() публичный Метод

Logs the administrator with the specified password in.
public ChangeToAdmin ( string adminPassword ) : void
adminPassword string The administrator password.
Результат void

ChangeToUser() публичный Метод

Changes the access mode to user mode.
public ChangeToUser ( ) : void
Результат void

ContinueSong() публичный Метод

Continues the currently loaded song.
public ContinueSong ( ) : void
Результат void

CreateAdmin() публичный Метод

Creates the administrator with the specified password.
public CreateAdmin ( string adminPassword ) : void
adminPassword string The administrator password.
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Library() публичный Метод

Initializes a new instance of the Library class.
public Library ( ) : System
Результат System

PauseSong() публичный Метод

Pauses the currently loaded song.
public PauseSong ( ) : void
Результат void

PlayNextSong() публичный Метод

Plays the next song in the playlist.
public PlayNextSong ( ) : void
Результат void

PlayPreviousSong() публичный Метод

Plays the previous song in the playlist.
public PlayPreviousSong ( ) : void
Результат void

PlaySong() публичный Метод

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.
Результат void

RemoveFromLibrary() публичный Метод

Removes the specified songs from the library.
public RemoveFromLibrary ( IEnumerable songList ) : void
songList IEnumerable The list of the songs to remove from the library.
Результат void

RemoveFromPlaylist() публичный Метод

Removes the specified songs from the playlist.
public RemoveFromPlaylist ( IEnumerable songList ) : void
songList IEnumerable The songs to remove.
Результат void

RemoveFromPlaylist() публичный Метод

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.
Результат void