Proper override the GetProfiles method

This commit is contained in:
Igor Borges 2022-06-22 21:01:07 +00:00 committed by GitHub
commit 5d70492392

View file

@ -1,6 +1,8 @@
using System.Net.Http;
using System.Collections.Generic;
using System.Threading.Tasks;
using Ombi.Api.Sonarr.Models;
using Ombi.Api.Sonarr.Models.V3;
namespace Ombi.Api.Sonarr
@ -22,7 +24,7 @@ namespace Ombi.Api.Sonarr
return await Api.Request<List<LanguageProfiles>>(request);
}
public async Task<IEnumerable<SonarrProfile>> GetProfiles(string apiKey, string baseUrl)
public override async Task<IEnumerable<SonarrProfile>> GetProfiles(string apiKey, string baseUrl)
{
var request = new Request($"{ApiBaseUrl}qualityprofile", baseUrl, HttpMethod.Get);
request.AddHeader("X-Api-Key", apiKey);