1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/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 04:00:46 +03:00
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
public Series Series { get; set; }
public List<Episode> Episodes { get; set; }
public bool IsRecentEpisode()
{
2013-07-24 08:28:06 +03:00
return Episodes.Any(e => e.AirDateUtc >= DateTime.Today.AddDays(-14));
}
2013-08-14 08:25:53 +03:00
public override string ToString()
{
return Report.Title;
}
}
}