Radarr/src/NzbDrone.Core/Messaging/Commands/Command.cs

23 lines
552 B
C#
Raw Normal View History

2013-09-11 06:33:47 +00:00
using System;
namespace NzbDrone.Core.Messaging.Commands
{
public abstract class Command
2013-09-11 06:33:47 +00:00
{
2016-12-09 06:54:15 +00:00
public virtual bool SendUpdatesToClient => false;
2013-09-11 06:33:47 +00:00
2016-12-09 06:54:15 +00:00
public virtual bool UpdateScheduledTask => true;
2016-12-09 06:54:15 +00:00
public virtual string CompletionMessage => "Completed";
2013-09-11 06:33:47 +00:00
public string Name { get; private set; }
public DateTime? LastExecutionTime { get; set; }
public CommandTrigger Trigger { get; set; }
2013-09-11 06:33:47 +00:00
public Command()
2013-09-11 06:33:47 +00:00
{
Name = GetType().Name.Replace("Command", "");
}
}
}