2013-08-27 03:20:03 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using NzbDrone.Api.Episodes;
|
|
|
|
|
using RestSharp;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Integration.Test.Client
|
|
|
|
|
{
|
|
|
|
|
public class EpisodeClient : ClientBase<EpisodeResource>
|
|
|
|
|
{
|
2013-09-21 02:07:42 +00:00
|
|
|
|
public EpisodeClient(IRestClient restClient, string apiKey)
|
|
|
|
|
: base(restClient, apiKey, "episodes")
|
2013-08-27 03:20:03 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<EpisodeResource> GetEpisodesInSeries(int seriesId)
|
|
|
|
|
{
|
|
|
|
|
var request = BuildRequest("?seriesId=" + seriesId.ToString());
|
|
|
|
|
return Get<List<EpisodeResource>>(request);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|