sonarr-repo-only/NzbDrone.Core/SeriesStats/SeriesStatistics.cs

27 lines
649 B
C#
Raw Normal View History

2013-04-20 20:09:12 +00:00
using System;
2013-04-20 21:23:17 +00:00
using NzbDrone.Core.Datastore;
2013-04-20 20:09:12 +00:00
2013-04-20 23:36:23 +00:00
namespace NzbDrone.Core.SeriesStats
2013-04-20 20:09:12 +00:00
{
2013-04-20 21:23:17 +00:00
public class SeriesStatistics : ResultSet
2013-04-20 20:09:12 +00:00
{
public int SeriesId { get; set; }
public int NumberOfSeasons { get; set; }
2013-04-20 21:23:17 +00:00
public string NextAiringString { get; set; }
2013-04-20 23:36:23 +00:00
public int EpisodeFileCount { get; set; }
public int EpisodeCount { get; set; }
2013-04-20 21:23:17 +00:00
public DateTime? NextAiring
{
2013-04-20 23:36:23 +00:00
get
{
DateTime nextAiring;
if (!DateTime.TryParse(NextAiringString, out nextAiring)) return null;
return nextAiring;
}
2013-04-20 21:23:17 +00:00
}
2013-04-20 20:09:12 +00:00
}
}