2013-07-08 03:15:15 +00:00
|
|
|
using System;
|
2013-04-15 01:41:39 +00:00
|
|
|
using System.Collections.Generic;
|
2013-07-08 03:15:15 +00:00
|
|
|
using System.Linq;
|
2013-04-15 01:41:39 +00:00
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
|
|
{
|
|
|
|
public class RemoteEpisode
|
|
|
|
{
|
|
|
|
public ReportInfo Report { get; set; }
|
2013-07-04 01:00:46 +00:00
|
|
|
|
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-07-08 03:15:15 +00:00
|
|
|
|
|
|
|
public bool IsRecentEpisode()
|
|
|
|
{
|
2013-09-01 18:30:54 +00:00
|
|
|
return Episodes.Any(e => e.AirDateUtc >= DateTime.UtcNow.Date.AddDays(-14));
|
2013-07-08 03:15:15 +00:00
|
|
|
}
|
2013-08-14 05:25:53 +00:00
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return Report.Title;
|
|
|
|
}
|
2013-04-15 01:41:39 +00:00
|
|
|
}
|
|
|
|
}
|