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.
Readarr/src/NzbDrone.Common/Cloud/ReadarrCloudRequestBuilder.cs

32 lines
939 B

using NzbDrone.Common.Http;
namespace NzbDrone.Common.Cloud
{
public interface IReadarrCloudRequestBuilder
{
IHttpRequestBuilderFactory Services { get; }
IHttpRequestBuilderFactory Search { get; }
IHttpRequestBuilderFactory InternalSearch { get; }
}
public class ReadarrCloudRequestBuilder : IReadarrCloudRequestBuilder
{
public ReadarrCloudRequestBuilder()
{
//TODO: Create Update Endpoint
Services = new HttpRequestBuilder("https://readarr.lidarr.audio/v1/")
.CreateFactory();
Search = new HttpRequestBuilder("https://api.lidarr.audio/api/v0.4/{route}")
.KeepAlive()
.CreateFactory();
}
public IHttpRequestBuilderFactory Services { get; }
public IHttpRequestBuilderFactory Search { get; }
public IHttpRequestBuilderFactory InternalSearch { get; }
}
}