2013-07-19 03:47:55 +00:00
|
|
|
|
using System.Collections.Generic;
|
2013-07-06 21:47:49 +00:00
|
|
|
|
using System.Linq;
|
2014-12-19 00:26:42 +00:00
|
|
|
|
using NzbDrone.Common.Extensions;
|
2015-01-27 05:57:07 +00:00
|
|
|
|
using NzbDrone.Core.DecisionEngine;
|
2013-07-06 21:47:49 +00:00
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.MediaFiles.EpisodeImport
|
|
|
|
|
{
|
|
|
|
|
public class ImportDecision
|
|
|
|
|
{
|
|
|
|
|
public LocalEpisode LocalEpisode { get; private set; }
|
2015-01-27 05:57:07 +00:00
|
|
|
|
public IEnumerable<Rejection> Rejections { get; private set; }
|
2013-07-06 21:47:49 +00:00
|
|
|
|
|
2016-12-09 06:54:15 +00:00
|
|
|
|
public bool Approved => Rejections.Empty();
|
2013-07-06 21:47:49 +00:00
|
|
|
|
|
2015-01-27 05:57:07 +00:00
|
|
|
|
public ImportDecision(LocalEpisode localEpisode, params Rejection[] rejections)
|
2013-07-06 21:47:49 +00:00
|
|
|
|
{
|
|
|
|
|
LocalEpisode = localEpisode;
|
|
|
|
|
Rejections = rejections.ToList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|