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

21 lines
503 B
C#
Raw Permalink Normal View History

using System.Collections.Generic;
using Radarr.Api.V3.Indexers;
2013-05-03 05:24:52 +00:00
using RestSharp;
namespace NzbDrone.Integration.Test.Client
{
public class IndexerClient : ClientBase<IndexerResource>
{
2013-09-21 02:07:42 +00:00
public IndexerClient(IRestClient restClient, string apiKey)
: base(restClient, apiKey)
2013-05-03 05:24:52 +00:00
{
}
public List<IndexerResource> Schema()
{
var request = BuildRequest("/schema");
return Get<List<IndexerResource>>(request);
}
2013-05-03 05:24:52 +00:00
}
2019-12-22 21:24:10 +00:00
}