Radarr/src/NzbDrone.Core/DecisionEngine/Rejection.cs

22 lines
476 B
C#

using System;
namespace NzbDrone.Core.DecisionEngine
{
public class Rejection
{
public string Reason { get; set; }
public RejectionType Type { get; set; }
public Rejection(string reason, RejectionType type = RejectionType.Permanent)
{
Reason = reason;
Type = type;
}
public override string ToString()
{
return string.Format("[{0}] {1}", Type, Reason);
}
}
}