mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
cleaned up episode search
This commit is contained in:
22
NzbDrone.Core/DecisionEngine/DownloadDecision.cs
Normal file
22
NzbDrone.Core/DecisionEngine/DownloadDecision.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user