You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Net;
|
|
|
|
|
using NzbDrone.Api.Episodes;
|
|
|
|
|
using NzbDrone.Api.Series;
|
|
|
|
|
using RestSharp;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Integration.Test.Client
|
|
|
|
|
{
|
|
|
|
|
public class EpisodeClient : ClientBase<EpisodeResource>
|
|
|
|
|
{
|
|
|
|
|
public EpisodeClient(IRestClient restClient)
|
|
|
|
|
: base(restClient, "episodes")
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<EpisodeResource> GetEpisodesInSeries(int seriesId)
|
|
|
|
|
{
|
|
|
|
|
var request = BuildRequest("?seriesId=" + seriesId.ToString());
|
|
|
|
|
return Get<List<EpisodeResource>>(request);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|