1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00:00
Sonarr/NzbDrone.Web/Models/SeriesModel.cs
Mark McDowall 431d850d32 SeriesProvider gets QualityProfile in single call to DB.
SeriesProvider.GetAllSeriesWithEpisodeCount gets seasonCount(with or without specials), total episode count & episodeWithFile count (excluding ignored episodes).
Added tests for SeriesWithEpisodeCount.
2011-06-20 00:13:17 -07:00

44 lines
No EOL
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using NzbDrone.Core.Repository;
namespace NzbDrone.Web.Models
{
public class SeriesModel
{
public int SeriesId { get; set; }
//View Only
public string Title { get; set; }
public int SeasonsCount { get; set; }
public int EpisodeCount { get; set; }
public int EpisodeFileCount { get; set; }
public string Status { get; set; }
public string AirsDayOfWeek { get; set; }
public string QualityProfileName { get; set; }
public string Overview { get; set; }
public int Episodes { get; set; }
public IList<int> Seasons { get; set; }
//View & Edit
[DisplayName("Path")]
public string Path { get; set; }
[DisplayName("Quality Profile")]
public virtual int QualityProfileId { get; set; }
//Editing Only
[DisplayName("Use Season Folder")]
public bool SeasonFolder { get; set; }
[DisplayName("Monitored")]
public bool Monitored { get; set; }
[DisplayName("Season Editor")]
public List<SeasonEditModel> SeasonEditor { get; set; }
}
}