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.
recyclarr/src/Recyclarr.Cli/Pipelines/ReleaseProfile/PipelinePhases/ReleaseProfileApiFetchPhase.cs

22 lines
563 B

using Recyclarr.Config.Models;
using Recyclarr.ServarrApi.Dto;
using Recyclarr.ServarrApi.Services;
namespace Recyclarr.Cli.Pipelines.ReleaseProfile.PipelinePhases;
public class ReleaseProfileApiFetchPhase
{
private readonly IReleaseProfileApiService _rpService;
public ReleaseProfileApiFetchPhase(
IReleaseProfileApiService rpService)
{
_rpService = rpService;
}
public async Task<IList<SonarrReleaseProfile>> Execute(IServiceConfiguration config)
{
return await _rpService.GetReleaseProfiles(config);
}
}