C# 클래스 Espera.Core.Library.Library

상속: IDisposable
파일 보기 프로젝트 열기: gazwinter/Espera

공개 메소드들

메소드 설명
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