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

Inheritance: IFavoriteRepository
Exibir arquivo Open project: einsteinx2/WaveBox

Public Methods

Method Description
AddFavorite ( int favoriteUserId, int favoriteItemId, ItemType favoriteItemType ) : int?
DeleteFavorite ( int favoriteId ) : bool
FavoriteForId ( int favoriteId ) : Favorite
FavoriteRepository ( IDatabase database, IAlbumArtistRepository albumArtistRepository, IAlbumRepository albumRepository, IArtistRepository artistRepository, IFolderRepository folderRepository, IGenreRepository genreRepository, IPlaylistRepository playlistRepository, ISongRepository songRepository, IVideoRepository videoRepository, IItemRepository itemRepository ) : System
FavoritesForAlbumArtistId ( int albumArtistId, int userId ) : IList
FavoritesForArtistId ( int artistId, int userId ) : IList
FavoritesForUserId ( int userId ) : IList
ItemsForFavorites ( IList favorites ) : IList
ItemsForUserId ( int userId ) : IList

Method Details

AddFavorite() public method

public AddFavorite ( int favoriteUserId, int favoriteItemId, ItemType favoriteItemType ) : int?
favoriteUserId int
favoriteItemId int
favoriteItemType ItemType
return int?

DeleteFavorite() public method

public DeleteFavorite ( int favoriteId ) : bool
favoriteId int
return bool

FavoriteForId() public method

public FavoriteForId ( int favoriteId ) : Favorite
favoriteId int
return Favorite

FavoriteRepository() public method

public FavoriteRepository ( IDatabase database, IAlbumArtistRepository albumArtistRepository, IAlbumRepository albumRepository, IArtistRepository artistRepository, IFolderRepository folderRepository, IGenreRepository genreRepository, IPlaylistRepository playlistRepository, ISongRepository songRepository, IVideoRepository videoRepository, IItemRepository itemRepository ) : System
database IDatabase
albumArtistRepository IAlbumArtistRepository
albumRepository IAlbumRepository
artistRepository IArtistRepository
folderRepository IFolderRepository
genreRepository IGenreRepository
playlistRepository IPlaylistRepository
songRepository ISongRepository
videoRepository IVideoRepository
itemRepository IItemRepository
return System

FavoritesForAlbumArtistId() public method

public FavoritesForAlbumArtistId ( int albumArtistId, int userId ) : IList
albumArtistId int
userId int
return IList

FavoritesForArtistId() public method

public FavoritesForArtistId ( int artistId, int userId ) : IList
artistId int
userId int
return IList

FavoritesForUserId() public method

public FavoritesForUserId ( int userId ) : IList
userId int
return IList

ItemsForFavorites() public method

public ItemsForFavorites ( IList favorites ) : IList
favorites IList
return IList

ItemsForUserId() public method

public ItemsForUserId ( int userId ) : IList
userId int
return IList