mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
22 lines
476 B
C#
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);
|
|
}
|
|
}
|
|
}
|