|
|
@ -12,6 +12,7 @@ namespace NzbDrone.Core.Qualities
|
|
|
|
{
|
|
|
|
{
|
|
|
|
void Update(QualityDefinition qualityDefinition);
|
|
|
|
void Update(QualityDefinition qualityDefinition);
|
|
|
|
List<QualityDefinition> All();
|
|
|
|
List<QualityDefinition> All();
|
|
|
|
|
|
|
|
QualityDefinition GetById(Int32 id);
|
|
|
|
QualityDefinition Get(Quality quality);
|
|
|
|
QualityDefinition Get(Quality quality);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +46,11 @@ namespace NzbDrone.Core.Qualities
|
|
|
|
return GetAll().Values.ToList();
|
|
|
|
return GetAll().Values.ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public QualityDefinition GetById(Int32 id)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return GetAll().Values.Single(v => v.Id == id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public QualityDefinition Get(Quality quality)
|
|
|
|
public QualityDefinition Get(Quality quality)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (quality == Quality.Unknown)
|
|
|
|
if (quality == Quality.Unknown)
|
|
|
|