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

33 lines
665 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 Boolean SendUpdatesToClient
2013-09-11 06:33:47 +00:00
{
get
{
return false;
}
}
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", "");
}
}
}