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.
16 lines
698 B
16 lines
698 B
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Metadata; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories; |
|
|
|
public interface IMediaServerMovieRepository<in TLibrary, TMovie, TEtag> where TLibrary : Library |
|
where TMovie : Movie |
|
where TEtag : MediaServerItemEtag |
|
{ |
|
Task<List<TEtag>> GetExistingMovies(TLibrary library); |
|
Task<bool> FlagNormal(TLibrary library, TMovie movie); |
|
Task<Option<int>> FlagUnavailable(TLibrary library, TMovie movie); |
|
Task<List<int>> FlagFileNotFound(TLibrary library, List<string> movieItemIds); |
|
Task<Either<BaseError, MediaItemScanResult<TMovie>>> GetOrAdd(TLibrary library, TMovie item); |
|
Task<Unit> SetEtag(TMovie movie, string etag); |
|
}
|
|
|