2015-05-15 16:35:12 +02:00
|
|
|
using System;
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.SeriesStats
|
|
|
|
{
|
|
|
|
public class SeasonStatistics : ResultSet
|
|
|
|
{
|
|
|
|
public int SeriesId { get; set; }
|
|
|
|
public int SeasonNumber { get; set; }
|
|
|
|
public string NextAiringString { get; set; }
|
|
|
|
public string PreviousAiringString { get; set; }
|
|
|
|
public int EpisodeFileCount { get; set; }
|
|
|
|
public int EpisodeCount { get; set; }
|
2015-05-27 20:28:57 +02:00
|
|
|
public int TotalEpisodeCount { get; set; }
|
2015-05-15 16:35:12 +02:00
|
|
|
public long SizeOnDisk { get; set; }
|
|
|
|
|
|
|
|
public DateTime? NextAiring
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
DateTime nextAiring;
|
|
|
|
|
|
|
|
if (!DateTime.TryParse(NextAiringString, out nextAiring)) return null;
|
|
|
|
|
|
|
|
return nextAiring;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public DateTime? PreviousAiring
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
DateTime previousAiring;
|
|
|
|
|
|
|
|
if (!DateTime.TryParse(PreviousAiringString, out previousAiring)) return null;
|
|
|
|
|
|
|
|
return previousAiring;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|