mirror of
https://github.com/Radarr/Radarr
synced 2025-02-07 23:33:52 +00:00
30 lines
617 B
C#
30 lines
617 B
C#
|
using System;
|
|||
|
|
|||
|
namespace NzbDrone.Common.Messaging.Manager
|
|||
|
{
|
|||
|
public class CommandManagerItem
|
|||
|
{
|
|||
|
public String Type { get; set; }
|
|||
|
public ICommand Command { get; set; }
|
|||
|
public CommandState State { get; set; }
|
|||
|
|
|||
|
public CommandManagerItem()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public CommandManagerItem(ICommand command, CommandState state)
|
|||
|
{
|
|||
|
Type = command.GetType().FullName;
|
|||
|
Command = command;
|
|||
|
State = state;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public enum CommandState
|
|||
|
{
|
|||
|
Running = 0,
|
|||
|
Completed = 1,
|
|||
|
Failed = 2
|
|||
|
}
|
|||
|
}
|