mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
865 B
23 lines
865 B
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Metadata; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories; |
|
|
|
public interface IArtistRepository |
|
{ |
|
Task<Option<Artist>> GetArtistByMetadata(int libraryPathId, ArtistMetadata metadata); |
|
|
|
Task<Either<BaseError, MediaItemScanResult<Artist>>> AddArtist( |
|
int libraryPathId, |
|
string artistFolder, |
|
ArtistMetadata metadata); |
|
|
|
Task<List<int>> DeleteEmptyArtists(LibraryPath libraryPath); |
|
Task<Option<Artist>> GetArtist(int artistId); |
|
Task<List<ArtistMetadata>> GetArtistsForCards(List<int> ids); |
|
Task<bool> AddGenre(ArtistMetadata metadata, Genre genre); |
|
Task<bool> AddStyle(ArtistMetadata metadata, Style style); |
|
Task<bool> AddMood(ArtistMetadata metadata, Mood mood); |
|
Task<List<MusicVideo>> GetArtistItems(int artistId); |
|
Task<List<Artist>> GetAllArtists(); |
|
}
|
|
|