* cleanup scanner project * cleanup infrastructure projects * cleanup ffmpeg project * cleanup core project * cleanup app project * cleanup main project * update dependencies * code cleanup
18 lines
711 B
C#
18 lines
711 B
C#
using ErsatzTV.Core.Domain;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories;
|
|
|
|
public interface ILibraryRepository
|
|
{
|
|
Task<LibraryPath> Add(LibraryPath libraryPath);
|
|
Task<Option<Library>> GetLibrary(int libraryId);
|
|
Task<Option<LocalLibrary>> GetLocal(int libraryId);
|
|
Task<List<Library>> GetAll();
|
|
Task<Unit> UpdateLastScan(Library library);
|
|
Task<Unit> UpdateLastScan(LibraryPath libraryPath);
|
|
Task<List<LibraryPath>> GetLocalPaths(int libraryId);
|
|
Task<int> CountMediaItemsByPath(int libraryPathId);
|
|
Task<Unit> SetEtag(LibraryPath libraryPath, Option<LibraryFolder> knownFolder, string path, string etag);
|
|
Task<Unit> CleanEtagsForLibraryPath(LibraryPath libraryPath);
|
|
}
|