1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-05 22:42:23 +00:00
Lidarr/NzbDrone.Core/DecisionEngine/DownloadDecision.cs

22 lines
472 B
C#
Raw Normal View History

2013-03-07 01:51:47 +00:00
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();
}
}
}