2010-09-29 17:19:18 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2010-09-30 06:59:00 +00:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using SubSonic.SqlGeneration.Schema;
|
2010-09-29 17:19:18 +00:00
|
|
|
|
|
2010-10-21 01:49:23 +00:00
|
|
|
|
namespace NzbDrone.Core.Repository.Quality
|
2010-09-29 17:19:18 +00:00
|
|
|
|
{
|
|
|
|
|
public class QualityProfile
|
|
|
|
|
{
|
2011-02-03 01:07:36 +00:00
|
|
|
|
[SubSonicPrimaryKey(true)]
|
|
|
|
|
public int ProfileId { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public bool UserProfile { get; set; } //Allows us to tell the difference between default and user profiles
|
2010-09-30 06:59:00 +00:00
|
|
|
|
|
2011-02-03 01:07:36 +00:00
|
|
|
|
[SubSonicToManyRelation]
|
|
|
|
|
public virtual List<AllowedQuality> Allowed { get; private set; }
|
2010-09-30 06:59:00 +00:00
|
|
|
|
|
|
|
|
|
[SubSonicIgnore]
|
2011-02-03 01:07:36 +00:00
|
|
|
|
public List<AllowedQuality> AllowedQualities { get; set; }
|
2010-09-29 17:19:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|