2013-02-09 10:04:18 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2013-09-26 00:14:27 +00:00
|
|
|
|
using System.Linq;
|
2013-04-20 00:05:48 +00:00
|
|
|
|
using NzbDrone.Api.REST;
|
2013-07-24 05:35:32 +00:00
|
|
|
|
using NzbDrone.Core.MediaCover;
|
2013-04-21 21:04:09 +00:00
|
|
|
|
using NzbDrone.Core.Tv;
|
2013-02-09 10:04:18 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Api.Series
|
|
|
|
|
{
|
2013-04-20 20:16:33 +00:00
|
|
|
|
public class SeriesResource : RestResource
|
2013-02-09 10:04:18 +00:00
|
|
|
|
{
|
|
|
|
|
//Todo: Sorters should be done completely on the client
|
|
|
|
|
//Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
|
2013-02-10 10:28:56 +00:00
|
|
|
|
//Todo: We should get the entire QualityProfile instead of ID and Name separately
|
2013-02-09 10:04:18 +00:00
|
|
|
|
|
|
|
|
|
//View Only
|
|
|
|
|
public String Title { get; set; }
|
2013-09-10 05:22:38 +00:00
|
|
|
|
|
|
|
|
|
public Int32 SeasonCount
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2013-09-26 00:14:27 +00:00
|
|
|
|
if (Seasons == null) return 0;
|
2013-09-10 05:22:38 +00:00
|
|
|
|
|
2013-09-26 00:14:27 +00:00
|
|
|
|
return Seasons.Where(s => s.SeasonNumber > 0).Count();
|
2013-09-10 05:22:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-09 10:04:18 +00:00
|
|
|
|
public Int32 EpisodeCount { get; set; }
|
|
|
|
|
public Int32 EpisodeFileCount { get; set; }
|
2013-04-21 21:04:09 +00:00
|
|
|
|
public SeriesStatusType Status { get; set; }
|
2013-02-09 10:04:18 +00:00
|
|
|
|
public String QualityProfileName { get; set; }
|
|
|
|
|
public String Overview { get; set; }
|
2013-04-20 20:09:12 +00:00
|
|
|
|
public DateTime? NextAiring { get; set; }
|
2013-02-09 10:04:18 +00:00
|
|
|
|
public String Network { get; set; }
|
|
|
|
|
public String AirTime { get; set; }
|
2013-07-24 05:35:32 +00:00
|
|
|
|
public List<MediaCover> Images { get; set; }
|
2013-02-09 10:04:18 +00:00
|
|
|
|
|
2013-05-26 01:19:03 +00:00
|
|
|
|
public String RemotePoster { get; set; }
|
2013-09-10 05:22:38 +00:00
|
|
|
|
public List<Season> Seasons { get; set; }
|
2013-09-10 06:44:55 +00:00
|
|
|
|
public Int32 Year { get; set; }
|
2013-05-26 01:19:03 +00:00
|
|
|
|
|
2013-02-09 10:04:18 +00:00
|
|
|
|
//View & Edit
|
2013-05-24 04:10:56 +00:00
|
|
|
|
public String Path { get; set; }
|
2013-02-09 10:04:18 +00:00
|
|
|
|
public Int32 QualityProfileId { get; set; }
|
|
|
|
|
|
|
|
|
|
//Editing Only
|
|
|
|
|
public Boolean SeasonFolder { get; set; }
|
|
|
|
|
public Boolean Monitored { get; set; }
|
2013-04-21 21:04:09 +00:00
|
|
|
|
|
|
|
|
|
public Boolean UseSceneNumbering { get; set; }
|
|
|
|
|
public Int32 Runtime { get; set; }
|
|
|
|
|
public Int32 TvdbId { get; set; }
|
|
|
|
|
public Int32 TvRageId { get; set; }
|
|
|
|
|
public DateTime? FirstAired { get; set; }
|
|
|
|
|
public DateTime? LastInfoSync { get; set; }
|
|
|
|
|
public SeriesTypes SeriesType { get; set; }
|
|
|
|
|
public String CleanTitle { get; set; }
|
|
|
|
|
public String ImdbId { get; set; }
|
|
|
|
|
public String TitleSlug { get; set; }
|
2013-05-24 04:10:56 +00:00
|
|
|
|
public String RootFolderPath { get; set; }
|
2013-02-09 10:04:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|