1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-14 15:03:42 +01:00
Radarr/NzbDrone.Core/DecisionEngine/DownloadDecision.cs

26 lines
632 B
C#
Raw Normal View History

2013-03-07 02:51:47 +01:00
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Parser.Model;
2013-03-07 02:51:47 +01:00
namespace NzbDrone.Core.DecisionEngine
{
public class DownloadDecision
{
public RemoteEpisode RemoteEpisode { 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();
}
}
public DownloadDecision(RemoteEpisode episode, params string[] rejections)
2013-03-07 02:51:47 +01:00
{
RemoteEpisode = episode;
2013-03-07 02:51:47 +01:00
Rejections = rejections.ToList();
}
}
}