2013-03-07 02:51:47 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
2013-04-07 09:30:37 +02:00
|
|
|
using NzbDrone.Core.Model;
|
2013-04-15 03:41:39 +02:00
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
2013-03-07 02:51:47 +01:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.DecisionEngine
|
|
|
|
{
|
|
|
|
public class DownloadDecision
|
|
|
|
{
|
2013-04-15 03:41:39 +02:00
|
|
|
public RemoteEpisode Episode { get; private set; }
|
2013-03-07 02:51:47 +01:00
|
|
|
public IEnumerable<string> Rejections { get; private set; }
|
2013-04-07 09:30:37 +02:00
|
|
|
|
2013-03-07 02:51:47 +01:00
|
|
|
public bool Approved
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return !Rejections.Any();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-15 03:41:39 +02:00
|
|
|
public DownloadDecision(RemoteEpisode episode, params string[] rejections)
|
2013-03-07 02:51:47 +01:00
|
|
|
{
|
2013-04-15 03:41:39 +02:00
|
|
|
Episode = episode;
|
2013-03-07 02:51:47 +01:00
|
|
|
Rejections = rejections.ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|