mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 10:48:46 +00:00
22 lines
No EOL
556 B
C#
22 lines
No EOL
556 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Api.Series;
|
|
using RestSharp;
|
|
|
|
namespace NzbDrone.Integration.Test.Client
|
|
{
|
|
public class SeriesClient : ClientBase<SeriesResource>
|
|
{
|
|
public SeriesClient(IRestClient restClient)
|
|
: base(restClient, "series")
|
|
{
|
|
}
|
|
|
|
public List<SeriesResource> Lookup(string term)
|
|
{
|
|
var request = BuildRequest("lookup?term={term}");
|
|
request.AddUrlSegment("term", term);
|
|
return Get<List<SeriesResource>>(request);
|
|
}
|
|
|
|
}
|
|
} |