2013-09-11 06:33:47 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Messaging.Commands
|
|
|
|
{
|
2015-01-16 00:30:09 +00:00
|
|
|
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;
|
2015-07-31 16:26:06 +00:00
|
|
|
|
2016-12-09 06:54:15 +00:00
|
|
|
public virtual string CompletionMessage => "Completed";
|
2013-09-11 06:33:47 +00:00
|
|
|
|
2015-10-03 17:45:26 +00:00
|
|
|
public string Name { get; private set; }
|
2014-04-12 20:49:41 +00:00
|
|
|
public DateTime? LastExecutionTime { get; set; }
|
2015-01-16 00:30:09 +00:00
|
|
|
public CommandTrigger Trigger { get; set; }
|
2013-09-11 06:33:47 +00:00
|
|
|
|
2015-01-16 00:30:09 +00:00
|
|
|
public Command()
|
2013-09-11 06:33:47 +00:00
|
|
|
{
|
|
|
|
Name = GetType().Name.Replace("Command", "");
|
|
|
|
}
|
|
|
|
}
|
2015-01-16 00:30:09 +00:00
|
|
|
}
|