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