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.TrashLib/Services/System/SystemApiService.cs

23 lines
592 B

using Flurl.Http;
using Recyclarr.TrashLib.Config.Services;
using Recyclarr.TrashLib.Http;
using Recyclarr.TrashLib.Services.System.Dto;
namespace Recyclarr.TrashLib.Services.System;
public class SystemApiService : ISystemApiService
{
private readonly IServiceRequestBuilder _service;
public SystemApiService(IServiceRequestBuilder service)
{
_service = service;
}
public async Task<SystemStatus> GetStatus(IServiceConfiguration config)
{
return await _service.Request(config, "system", "status")
.GetJsonAsync<SystemStatus>();
}
}