Files
Readarr/src/NzbDrone.Core/Books/Commands/RefreshAuthorCommand.cs
T
Mark McDowall 37a9f670dd Fixed: Task progress messages in the UI
(cherry picked from commit c6417337812f3578a27f9dc1e44fdad80f557271)

Closes #3370
2024-03-22 11:45:46 +02:00

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";
}
}