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

Inheritance: IAlbumRepository
Datei anzeigen Open project: einsteinx2/WaveBox

Public Methods

Method Description
AlbumForId ( int albumId ) : Album
AlbumForName ( string albumName, int albumArtistId ) : Album
AlbumForName ( string albumName, int albumArtistId, int releaseYear = null ) : Album
AlbumRepository ( IDatabase database, IItemRepository itemRepository ) : System
AllAlbums ( ) : IList
AllWithNoMusicBrainzId ( ) : IList
CountAlbums ( ) : int
InsertAlbum ( string albumName, int albumArtistId, int releaseYear ) : bool
LimitAlbums ( int index, int duration = Int32.MinValue ) : IList
RandomAlbums ( int limit = 10 ) : IList
RangeAlbums ( char start, char end ) : IList
SearchAlbums ( string field, string query, bool exact = true ) : IList

Method Details

AlbumForId() public method

public AlbumForId ( int albumId ) : Album
albumId int
return WaveBox.Core.Model.Album

AlbumForName() public method

public AlbumForName ( string albumName, int albumArtistId ) : Album
albumName string
albumArtistId int
return WaveBox.Core.Model.Album

AlbumForName() public method

public AlbumForName ( string albumName, int albumArtistId, int releaseYear = null ) : Album
albumName string
albumArtistId int
releaseYear int
return WaveBox.Core.Model.Album

AlbumRepository() public method

public AlbumRepository ( IDatabase database, IItemRepository itemRepository ) : System
database IDatabase
itemRepository IItemRepository
return System

AllAlbums() public method

public AllAlbums ( ) : IList
return IList

AllWithNoMusicBrainzId() public method

public AllWithNoMusicBrainzId ( ) : IList
return IList

CountAlbums() public method

public CountAlbums ( ) : int
return int

InsertAlbum() public method

public InsertAlbum ( string albumName, int albumArtistId, int releaseYear ) : bool
albumName string
albumArtistId int
releaseYear int
return bool

LimitAlbums() public method

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

RandomAlbums() public method

public RandomAlbums ( int limit = 10 ) : IList
limit int
return IList

RangeAlbums() public method

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

SearchAlbums() public method

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