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