mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
20 lines
544 B
C#
20 lines
544 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Api.Episodes;
|
|
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);
|
|
}
|
|
}
|
|
}
|