Radarr/src/NzbDrone.Integration.Test/Client/DownloadClientClient.cs

20 lines
546 B
C#

using System.Collections.Generic;
using Radarr.Api.V2.DownloadClient;
using RestSharp;
namespace NzbDrone.Integration.Test.Client
{
public class DownloadClientClient : ClientBase<DownloadClientResource>
{
public DownloadClientClient(IRestClient restClient, string apiKey)
: base(restClient, apiKey)
{
}
public List<DownloadClientResource> Schema()
{
var request = BuildRequest("/schema");
return Get<List<DownloadClientResource>>(request);
}
}
}