using System.Collections.Generic; using System.Net; using NzbDrone.Api.Series; using RestSharp; namespace NzbDrone.Integration.Test.Client { public class SeriesClient : ClientBase { public SeriesClient(IRestClient restClient, string apiKey) : base(restClient, apiKey) { } public List Lookup(string term) { var request = BuildRequest("lookup"); request.AddQueryParameter("term", term); return Get>(request); } public List Editor(List series) { var request = BuildRequest("editor"); request.AddJsonBody(series); return Put>(request); } public SeriesResource Get(string slug, HttpStatusCode statusCode = HttpStatusCode.OK) { var request = BuildRequest(slug); return Get(request, statusCode); } } public class SystemInfoClient : ClientBase { public SystemInfoClient(IRestClient restClient, string apiKey) : base(restClient, apiKey) { } } }