2013-04-15 01:41:39 +00: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 19:46:13 +00:00
|
|
|
|
|
|
|
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
|
2013-04-15 01:41:39 +00:00
|
|
|
|
|
|
|
public Series Series { get; set; }
|
|
|
|
|
|
|
|
public List<Episode> Episodes { get; set; }
|
|
|
|
|
2013-04-28 19:46:13 +00:00
|
|
|
public bool IsRecentEpisode()
|
2013-04-15 01:41:39 +00:00
|
|
|
{
|
2013-04-28 19:46:13 +00:00
|
|
|
return Episodes.Any(e => e.AirDate >= DateTime.Today.AddDays(-7));
|
2013-04-15 01:41:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|