2013-08-28 06:51:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Messaging.Manager
|
|
|
|
|
{
|
|
|
|
|
public class CommandManagerItem
|
|
|
|
|
{
|
2013-08-28 15:05:41 +00:00
|
|
|
|
public String Type { get; private set; }
|
|
|
|
|
public ICommand Command { get; private set; }
|
2013-08-28 06:51:42 +00:00
|
|
|
|
public CommandState State { get; set; }
|
|
|
|
|
|
|
|
|
|
public CommandManagerItem(ICommand command, CommandState state)
|
|
|
|
|
{
|
|
|
|
|
Type = command.GetType().FullName;
|
|
|
|
|
Command = command;
|
|
|
|
|
State = state;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum CommandState
|
|
|
|
|
{
|
|
|
|
|
Running = 0,
|
|
|
|
|
Completed = 1,
|
|
|
|
|
Failed = 2
|
|
|
|
|
}
|
|
|
|
|
}
|