C# Class WaveBox.Core.Model.Repository.SongRepository

Inheritance: ISongRepository
Exibir arquivo Open project: einsteinx2/WaveBox

Public Methods

Method Description
AllSongs ( ) : IList
CountSongs ( ) : int
InsertSong ( Song song, bool replace = false ) : bool
LimitSongs ( int index, int duration = Int32.MinValue ) : IList
RangeSongs ( char start, char end ) : IList
SearchSongs ( string field, string query, bool exact = true ) : IList
SongForId ( int songId ) : Song
SongRepository ( IDatabase database ) : System
SongsForIds ( IList songIds ) : IList
TotalSongDuration ( ) : long
TotalSongSize ( ) : long

Method Details

AllSongs() public method

public AllSongs ( ) : IList
return IList

CountSongs() public method

public CountSongs ( ) : int
return int

InsertSong() public method

public InsertSong ( Song song, bool replace = false ) : bool
song Song
replace bool
return bool

LimitSongs() public method

public LimitSongs ( int index, int duration = Int32.MinValue ) : IList
index int
duration int
return IList

RangeSongs() public method

public RangeSongs ( char start, char end ) : IList
start char
end char
return IList

SearchSongs() public method

public SearchSongs ( string field, string query, bool exact = true ) : IList
field string
query string
exact bool
return IList

SongForId() public method

public SongForId ( int songId ) : Song
songId int
return Song

SongRepository() public method

public SongRepository ( IDatabase database ) : System
database IDatabase
return System

SongsForIds() public method

public SongsForIds ( IList songIds ) : IList
songIds IList
return IList

TotalSongDuration() public method

public TotalSongDuration ( ) : long
return long

TotalSongSize() public method

public TotalSongSize ( ) : long
return long