C# Class SongRequest.SongPlayer.SongLibrary

Exibir arquivo Open project: Daspeed/SongRequest Class Usage Examples

Public Methods

Method Description
GetImageStream ( string tempId, bool large ) : MemoryStream
GetRandomSong ( ) : SongRequest.SongPlayer.RequestedSong
GetSong ( string tempId ) : Song
GetSongs ( string filter, string sortBy, bool ascending ) : IEnumerable
GetTempIds ( ) : HashSet
Rescan ( ) : void
ScanLibrary ( ) : bool
SongLibrary ( ) : System
UpdateSingleTag ( Song song ) : void

Update tags for single song

Protected Methods

Method Description
OnStatusChanged ( string status ) : void

Private Methods

Method Description
Deserialize ( ) : void
GetFilesRecursive ( string directory, HashSet extensions ) : HashSet

Get all matching files in a folder

GetSortString ( Song song, SortBy sortBy, int level ) : string

Get correct sort string

ScanSongs ( ) : bool
ScanSongsThread ( ) : void
SearchFunction ( Song song, string searchValue, string searchValueDoubleMetaphone, bool includeFileNameInSearch ) : bool
Serialize ( ) : void
SkipFileOrFolder ( string path ) : bool
UpdateTags ( ) : bool
UpdateTagsThread ( ) : void

Method Details

GetImageStream() public method

public GetImageStream ( string tempId, bool large ) : MemoryStream
tempId string
large bool
return System.IO.MemoryStream

GetRandomSong() public method

public GetRandomSong ( ) : SongRequest.SongPlayer.RequestedSong
return SongRequest.SongPlayer.RequestedSong

GetSong() public method

public GetSong ( string tempId ) : Song
tempId string
return Song

GetSongs() public method

public GetSongs ( string filter, string sortBy, bool ascending ) : IEnumerable
filter string
sortBy string
ascending bool
return IEnumerable

GetTempIds() public method

public GetTempIds ( ) : HashSet
return HashSet

OnStatusChanged() protected method

protected OnStatusChanged ( string status ) : void
status string
return void

Rescan() public method

public Rescan ( ) : void
return void

ScanLibrary() public method

public ScanLibrary ( ) : bool
return bool

SongLibrary() public method

public SongLibrary ( ) : System
return System

UpdateSingleTag() public static method

Update tags for single song
public static UpdateSingleTag ( Song song ) : void
song Song
return void