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.
32 lines
939 B
32 lines
939 B
7 years ago
|
using NzbDrone.Common.Http;
|
||
9 years ago
|
|
||
|
namespace NzbDrone.Common.Cloud
|
||
|
{
|
||
5 years ago
|
public interface IReadarrCloudRequestBuilder
|
||
9 years ago
|
{
|
||
|
IHttpRequestBuilderFactory Services { get; }
|
||
8 years ago
|
IHttpRequestBuilderFactory Search { get; }
|
||
8 years ago
|
IHttpRequestBuilderFactory InternalSearch { get; }
|
||
9 years ago
|
}
|
||
|
|
||
5 years ago
|
public class ReadarrCloudRequestBuilder : IReadarrCloudRequestBuilder
|
||
9 years ago
|
{
|
||
5 years ago
|
public ReadarrCloudRequestBuilder()
|
||
9 years ago
|
{
|
||
5 years ago
|
//TODO: Create Update Endpoint
|
||
|
Services = new HttpRequestBuilder("https://readarr.lidarr.audio/v1/")
|
||
9 years ago
|
.CreateFactory();
|
||
|
|
||
6 years ago
|
Search = new HttpRequestBuilder("https://api.lidarr.audio/api/v0.4/{route}")
|
||
5 years ago
|
.KeepAlive()
|
||
8 years ago
|
.CreateFactory();
|
||
9 years ago
|
}
|
||
|
|
||
8 years ago
|
public IHttpRequestBuilderFactory Services { get; }
|
||
9 years ago
|
|
||
8 years ago
|
public IHttpRequestBuilderFactory Search { get; }
|
||
|
|
||
8 years ago
|
public IHttpRequestBuilderFactory InternalSearch { get; }
|
||
9 years ago
|
}
|
||
|
}
|