* re-namespace * optimize usings * more usings * more of the same * more implicit/global usings * cleanup all usings * minor fixes
19 lines
455 B
C#
19 lines
455 B
C#
using ErsatzTV.Core;
|
|
|
|
namespace ErsatzTV.Application.MediaSources;
|
|
|
|
public interface IScanLocalLibrary : IRequest<Either<BaseError, string>>, IBackgroundServiceRequest
|
|
{
|
|
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;
|
|
} |