1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-04 02:18:06 +00:00
Lidarr/NzbDrone.Core/Tv/Episode.cs

45 lines
1.3 KiB
C#
Raw Normal View History

2013-03-06 12:30:53 -08:00
using System;
using Marr.Data;
using NzbDrone.Core.Datastore;
2013-02-28 23:03:41 -08:00
using NzbDrone.Core.MediaFiles;
using NzbDrone.Common;
2013-03-23 21:16:00 -07:00
namespace NzbDrone.Core.Tv
2010-10-04 23:21:18 -07:00
{
public class Episode : ModelBase
2010-10-04 23:21:18 -07:00
{
2013-07-25 20:25:24 -07:00
public const string AIR_DATE_FORMAT = "yyyy-MM-dd";
2013-02-24 16:00:17 -08:00
public int TvDbEpisodeId { get; set; }
public int SeriesId { get; set; }
2013-04-19 17:46:09 -07:00
public int EpisodeFileId { get; set; }
public int SeasonNumber { get; set; }
public int EpisodeNumber { get; set; }
public string Title { get; set; }
2013-07-25 20:25:24 -07:00
public string AirDate { get; set; }
2013-07-23 22:28:06 -07:00
public DateTime? AirDateUtc { get; set; }
public string Overview { get; set; }
public Boolean Monitored { get; set; }
public Nullable<Int32> AbsoluteEpisodeNumber { get; set; }
2012-10-16 22:00:28 -07:00
public int SceneSeasonNumber { get; set; }
public int SceneEpisodeNumber { get; set; }
2013-05-01 22:50:34 -07:00
public String SeriesTitle { get; private set; }
public LazyLoaded<EpisodeFile> EpisodeFile { get; set; }
public Series Series { get; set; }
2013-07-07 23:39:19 -07:00
public Boolean HasFile
{
get { return EpisodeFileId > 0; }
}
public override string ToString()
{
2013-07-25 20:25:24 -07:00
return string.Format("[{0}]{1}", TvDbEpisodeId, Title.NullSafe());
}
2010-10-04 23:21:18 -07:00
}
2011-04-09 19:44:01 -07:00
}