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

41 lines
804 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
{
public virtual bool SendUpdatesToClient
2013-09-11 06:33:47 +00:00
{
get
{
return false;
}
}
public virtual bool UpdateScheduledTask
{
get
{
return true;
}
}
public virtual string CompletionMessage
2013-09-11 06:33:47 +00:00
{
get
{
return "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", "");
}
}
}