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
|
|
|
|
{
|
2015-10-03 19:45:26 +02:00
|
|
|
public string Name { get; set; }
|
2014-06-08 11:22:55 +03:00
|
|
|
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
|
|
|
}
|