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