1using System.Collections.Generic;
2using System.Linq;
3using NzbDrone.Core.Parser.Model;
4
5namespace NzbDrone.Core.DecisionEngine
6{
7 public class DownloadDecision
8 {
9 public RemoteEpisode RemoteEpisode { get; private set; }
10 public IEnumerable<DownloadRejection> Rejections { get; private set; }
11
12 public bool Approved => !Rejections.Any();
13
14 public bool TemporarilyRejected
15 {
16 get
…lines 17–23 unchanged (7 lines)
24 get
25 {
26 return Rejections.Any() && Rejections.Any(r => r.Type == RejectionType.Permanent);
27 }
28 }
29
30 public DownloadDecision(RemoteEpisode episode, params DownloadRejection[] rejections)
31 {
32 RemoteEpisode = episode;
33 Rejections = rejections.ToList();
34 }
35
36 public override string ToString()
…lines 37–47 unchanged (11 lines)