Radarr/src/NzbDrone.Core/Profiles/Profile.cs

23 lines
601 B
C#
Raw Normal View History

2016-12-23 21:45:24 +00:00
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Qualities;
namespace NzbDrone.Core.Profiles
{
public class Profile : ModelBase
{
public string Name { get; set; }
public Quality Cutoff { get; set; }
public List<ProfileQualityItem> Items { get; set; }
public List<string> PreferredTags { get; set; }
public Language Language { get; set; }
public Quality LastAllowedQuality()
{
return Items.Last(q => q.Allowed).Quality;
}
}
}