Files
ersatztv/ErsatzTV.Application/MediaSources/Commands/ScanLocalLibrary.cs
T

20 lines
463 B
C#

using ErsatzTV.Core;
namespace ErsatzTV.Application.MediaSources;
public interface IScanLocalLibrary : IRequest<Either<BaseError, string>>, IScannerBackgroundServiceRequest
{
int LibraryId { get; }
bool ForceScan { get; }
}
public record ScanLocalLibraryIfNeeded(int LibraryId) : IScanLocalLibrary
{
public bool ForceScan => false;
}
public record ForceScanLocalLibrary(int LibraryId) : IScanLocalLibrary
{
public bool ForceScan => true;
}