mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
37a9f670dd
(cherry picked from commit c6417337812f3578a27f9dc1e44fdad80f557271) Closes #3370
27 lines
660 B
C#
27 lines
660 B
C#
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
namespace NzbDrone.Core.Books.Commands
|
|
{
|
|
public class RefreshAuthorCommand : Command
|
|
{
|
|
public int? AuthorId { get; set; }
|
|
public bool IsNewAuthor { get; set; }
|
|
|
|
public RefreshAuthorCommand()
|
|
{
|
|
}
|
|
|
|
public RefreshAuthorCommand(int? authorId, bool isNewAuthor = false)
|
|
{
|
|
AuthorId = authorId;
|
|
IsNewAuthor = isNewAuthor;
|
|
}
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
|
|
public override bool UpdateScheduledTask => !AuthorId.HasValue;
|
|
|
|
public override string CompletionMessage => "Completed";
|
|
}
|
|
}
|