mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-18 23:48:35 +02:00
33 lines
633 B
C#
33 lines
633 B
C#
using NzbDrone.Core.Datastore;
|
|
|
|
|
|
namespace NzbDrone.Core.Qualities
|
|
{
|
|
public class QualityDefinition : ModelBase
|
|
{
|
|
public Quality Quality { get; set; }
|
|
|
|
public string Title { get; set; }
|
|
|
|
public int Weight { get; set; }
|
|
|
|
public int MinSize { get; set; }
|
|
public int MaxSize { get; set; }
|
|
|
|
public QualityDefinition()
|
|
{
|
|
|
|
}
|
|
|
|
public QualityDefinition(Quality quality)
|
|
{
|
|
Quality = quality;
|
|
Title = quality.Name;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Quality.Name;
|
|
}
|
|
}
|
|
} |