2014-06-08 11:22:55 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2014-11-24 02:07:46 +02:00
|
|
|
using System.Linq;
|
2014-06-08 11:22:55 +03:00
|
|
|
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 Language Language { get; set; }
|
2014-11-24 02:07:46 +02:00
|
|
|
|
|
|
|
public Quality LastAllowedQuality()
|
|
|
|
{
|
|
|
|
return Items.Last(q => q.Allowed).Quality;
|
|
|
|
}
|
2014-06-08 11:22:55 +03:00
|
|
|
}
|
2014-11-24 02:07:46 +02:00
|
|
|
}
|