2014-06-08 08:22:55 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.DecisionEngine
|
|
|
|
|
{
|
|
|
|
|
public class Rejection
|
|
|
|
|
{
|
2015-10-03 17:45:26 +00:00
|
|
|
|
public string Reason { get; set; }
|
2014-06-08 08:22:55 +00:00
|
|
|
|
public RejectionType Type { get; set; }
|
|
|
|
|
|
|
|
|
|
public Rejection(string reason, RejectionType type = RejectionType.Permanent)
|
|
|
|
|
{
|
|
|
|
|
Reason = reason;
|
|
|
|
|
Type = type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2015-10-03 17:45:26 +00:00
|
|
|
|
return string.Format("[{0}] {1}", Type, Reason);
|
2014-06-08 08:22:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|