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