Radarr/NzbDrone.Core/Parser/Model/RemoteEpisode.cs

28 lines
623 B
C#
Raw Normal View History

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-07-04 01:00:46 +00:00
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
public Series Series { get; set; }
public List<Episode> Episodes { get; set; }
public bool IsRecentEpisode()
{
2013-07-24 05:28:06 +00:00
return Episodes.Any(e => e.AirDateUtc >= DateTime.Today.AddDays(-14));
}
2013-08-14 05:25:53 +00:00
public override string ToString()
{
return Report.Title;
}
}
}