You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
472 B
22 lines
472 B
12 years ago
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|