You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
699 B
26 lines
699 B
using NzbDrone.Core.Profiles.Qualities;
|
|
using Lidarr.Http;
|
|
|
|
namespace Lidarr.Api.V1.Profiles.Quality
|
|
{
|
|
public class QualityProfileSchemaModule : LidarrRestModule<QualityProfileResource>
|
|
{
|
|
private readonly IProfileService _profileService;
|
|
|
|
public QualityProfileSchemaModule(IProfileService profileService)
|
|
: base("/qualityprofile/schema")
|
|
{
|
|
_profileService = profileService;
|
|
GetResourceSingle = GetSchema;
|
|
}
|
|
|
|
private QualityProfileResource GetSchema()
|
|
{
|
|
Profile qualityProfile = _profileService.GetDefaultProfile(string.Empty);
|
|
|
|
|
|
return qualityProfile.ToResource();
|
|
}
|
|
}
|
|
}
|