mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 10:48:46 +00:00
22 lines
472 B
C#
22 lines
472 B
C#
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
|
||
|
namespace NzbDrone.Core.DecisionEngine
|
||
|
{
|
||
|
public class DownloadDecision
|
||
|
{
|
||
|
public IEnumerable<string> Rejections { get; private set; }
|
||
|
public bool Approved
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return !Rejections.Any();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public DownloadDecision(params string[] rejections)
|
||
|
{
|
||
|
Rejections = rejections.ToList();
|
||
|
}
|
||
|
}
|
||
|
}
|