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
|
|
|
{
|
2014-09-11 06:49:25 +00:00
|
|
|
public virtual Boolean SendUpdatesToClient
|
2013-09-11 06:33:47 +00:00
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-16 00:30:09 +00:00
|
|
|
public virtual string CompletionMessage
|
2013-09-11 06:33:47 +00:00
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2015-01-16 00:30:09 +00:00
|
|
|
return "Completed";
|
2013-09-11 06:33:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-11 06:49:25 +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
|
|
|
}
|