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.
17 lines
862 B
17 lines
862 B
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Metadata; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories; |
|
|
|
public interface IMediaServerOtherVideoRepository<in TLibrary, TOtherVideo, TEtag> where TLibrary : Library |
|
where TOtherVideo : OtherVideo |
|
where TEtag : MediaServerItemEtag |
|
{ |
|
Task<List<TEtag>> GetExistingOtherVideos(TLibrary library); |
|
Task<Option<int>> FlagNormal(TLibrary library, TOtherVideo otherVideo); |
|
Task<Option<int>> FlagUnavailable(TLibrary library, TOtherVideo otherVideo); |
|
Task<Option<int>> FlagRemoteOnly(TLibrary library, TOtherVideo otherVideo); |
|
Task<List<int>> FlagFileNotFound(TLibrary library, List<string> movieItemIds); |
|
Task<Either<BaseError, MediaItemScanResult<TOtherVideo>>> GetOrAdd(TLibrary library, TOtherVideo item, bool deepScan); |
|
Task<Unit> SetEtag(TOtherVideo otherVideo, string etag); |
|
}
|
|
|