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.
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Messaging.Commands
|
|
|
|
{
|
|
|
|
public abstract class Command
|
|
|
|
{
|
|
|
|
private bool _sendUpdatesToClient;
|
|
|
|
|
|
|
|
public virtual bool SendUpdatesToClient
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return _sendUpdatesToClient;
|
|
|
|
}
|
|
|
|
|
|
|
|
set
|
|
|
|
{
|
|
|
|
_sendUpdatesToClient = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual bool UpdateScheduledTask => true;
|
|
|
|
|
|
|
|
public virtual string CompletionMessage => "Completed";
|
|
|
|
|
|
|
|
public string Name { get; private set; }
|
|
|
|
public DateTime? LastExecutionTime { get; set; }
|
|
|
|
public CommandTrigger Trigger { get; set; }
|
|
|
|
public bool SuppressMessages { get; set; }
|
|
|
|
|
|
|
|
public Command()
|
|
|
|
{
|
|
|
|
Name = GetType().Name.Replace("Command", "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|