2011-11-29 06:10:43 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
using NzbDrone.Core.Repository.Quality;
|
|
|
|
|
using PetaPoco;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Models
|
|
|
|
|
{
|
|
|
|
|
public class QualityProfileModel
|
|
|
|
|
{
|
|
|
|
|
public int QualityProfileId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "A Name is Required")]
|
|
|
|
|
[DisplayName("Name")]
|
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Cut-off")]
|
|
|
|
|
[Required(ErrorMessage = "Valid Cut-off is Required")]
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int Cutoff { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Allowed Qualities")]
|
|
|
|
|
public List<QualityTypes> Allowed { get; set; }
|
|
|
|
|
|
|
|
|
|
//Quality Booleans
|
|
|
|
|
[DisplayName("SDTV")]
|
|
|
|
|
public bool Sdtv { get; set; }
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int SdtvId { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("DVD")]
|
|
|
|
|
public bool Dvd { get; set; }
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int DvdId { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("HDTV")]
|
|
|
|
|
public bool Hdtv { get; set; }
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int HdtvId { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("WEBDL")]
|
|
|
|
|
public bool Webdl { get; set; }
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int WebdlId { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Bluray720p")]
|
|
|
|
|
public bool Bluray720p { get; set; }
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int Bluray720pId { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Bluray1080p")]
|
|
|
|
|
public bool Bluray1080p { get; set; }
|
2012-10-15 01:09:07 +02:00
|
|
|
|
public int Bluray1080pId { get; set; }
|
2011-11-29 06:10:43 +01:00
|
|
|
|
}
|
|
|
|
|
}
|