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.
21 lines
594 B
21 lines
594 B
using ErsatzTV.Core; |
|
|
|
namespace ErsatzTV.Application.Emby; |
|
|
|
public interface ISynchronizeEmbyLibraryById : IRequest<Either<BaseError, string>>, IScannerBackgroundServiceRequest |
|
{ |
|
int EmbyLibraryId { get; } |
|
bool ForceScan { get; } |
|
bool DeepScan { get; } |
|
} |
|
|
|
public record SynchronizeEmbyLibraryByIdIfNeeded(int EmbyLibraryId) : ISynchronizeEmbyLibraryById |
|
{ |
|
public bool ForceScan => false; |
|
public bool DeepScan => false; |
|
} |
|
|
|
public record ForceSynchronizeEmbyLibraryById(int EmbyLibraryId, bool DeepScan) : ISynchronizeEmbyLibraryById |
|
{ |
|
public bool ForceScan => true; |
|
}
|
|
|