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.
28 lines
683 B
28 lines
683 B
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NzbDrone.Common.Extensions;
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
namespace NzbDrone.Core.MediaFiles.EpisodeImport
|
|
{
|
|
public class ImportDecision
|
|
{
|
|
public LocalEpisode LocalEpisode { get; private set; }
|
|
public IEnumerable<string> Rejections { get; private set; }
|
|
|
|
public bool Approved
|
|
{
|
|
get
|
|
{
|
|
return Rejections.Empty();
|
|
}
|
|
}
|
|
|
|
public ImportDecision(LocalEpisode localEpisode, params string[] rejections)
|
|
{
|
|
LocalEpisode = localEpisode;
|
|
Rejections = rejections.ToList();
|
|
}
|
|
}
|
|
}
|