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