sonarr-repo-only/NzbDrone.Common/Messaging/Manager/CommandManagerItem.cs

26 lines
576 B
C#

using System;
namespace NzbDrone.Common.Messaging.Manager
{
public class CommandManagerItem
{
public String Type { get; private set; }
public ICommand Command { get; private set; }
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
}
}