2013-04-15 03:41:39 +02:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
|
|
{
|
|
|
|
public class RemoteEpisode
|
|
|
|
{
|
|
|
|
public ReportInfo Report { get; set; }
|
2013-04-28 21:46:13 +02:00
|
|
|
|
|
|
|
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
|
2013-04-15 03:41:39 +02:00
|
|
|
|
|
|
|
public Series Series { get; set; }
|
|
|
|
|
|
|
|
public List<Episode> Episodes { get; set; }
|
|
|
|
|
2013-04-28 21:46:13 +02:00
|
|
|
public bool IsRecentEpisode()
|
2013-04-15 03:41:39 +02:00
|
|
|
{
|
2013-04-28 21:46:13 +02:00
|
|
|
return Episodes.Any(e => e.AirDate >= DateTime.Today.AddDays(-7));
|
2013-04-15 03:41:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|