mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02:00
Episode and Season monitored toggling works again
This commit is contained in:
22
NzbDrone.Integration.Test/Client/EpisodeClient.cs
Normal file
22
NzbDrone.Integration.Test/Client/EpisodeClient.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user