mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-29 02:57:15 +02:00
26 lines
682 B
C#
26 lines
682 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
{
|
|
public class RemoteEpisode
|
|
{
|
|
public ReleaseInfo Release { get; set; }
|
|
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
|
|
public Series Series { get; set; }
|
|
public List<Episode> Episodes { get; set; }
|
|
public Boolean DownloadAllowed { get; set; }
|
|
|
|
public bool IsRecentEpisode()
|
|
{
|
|
return Episodes.Any(e => e.AirDateUtc >= DateTime.UtcNow.Date.AddDays(-14));
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Release.Title;
|
|
}
|
|
}
|
|
} |