mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Remove Previous API
This commit is contained in:
20
src/NzbDrone.Integration.Test/Client/AlbumClient.cs
Normal file
20
src/NzbDrone.Integration.Test/Client/AlbumClient.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using Lidarr.Api.V3.Albums;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
{
|
||||
public class AlbumClient : ClientBase<AlbumResource>
|
||||
{
|
||||
public AlbumClient(IRestClient restClient, string apiKey)
|
||||
: base(restClient, apiKey, "album")
|
||||
{
|
||||
}
|
||||
|
||||
public List<AlbumResource> GetAlbumsInArtist(int artistId)
|
||||
{
|
||||
var request = BuildRequest("?artistId=" + artistId.ToString());
|
||||
return Get<List<AlbumResource>>(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using NzbDrone.Api.Music;
|
||||
using Lidarr.Api.V3.Artist;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using FluentAssertions;
|
||||
using NLog;
|
||||
using NzbDrone.Api;
|
||||
using Lidarr.Api.V3;
|
||||
using Lidarr.Http.REST;
|
||||
using NzbDrone.Common.Serializer;
|
||||
using RestSharp;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using NzbDrone.Api.Commands;
|
||||
using Lidarr.Api.V3.Commands;
|
||||
using RestSharp;
|
||||
using NzbDrone.Core.Messaging.Commands;
|
||||
using FluentAssertions;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Api.DownloadClient;
|
||||
using System.Collections.Generic;
|
||||
using Lidarr.Api.V3.DownloadClient;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
@@ -17,4 +17,4 @@ namespace NzbDrone.Integration.Test.Client
|
||||
return Get<List<DownloadClientResource>>(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Api.Episodes;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
{
|
||||
public class EpisodeClient : ClientBase<EpisodeResource>
|
||||
{
|
||||
public EpisodeClient(IRestClient restClient, string apiKey)
|
||||
: base(restClient, apiKey, "episode")
|
||||
{
|
||||
}
|
||||
|
||||
public List<EpisodeResource> GetEpisodesInSeries(int seriesId)
|
||||
{
|
||||
var request = BuildRequest("?seriesId=" + seriesId.ToString());
|
||||
return Get<List<EpisodeResource>>(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using NzbDrone.Api.Indexers;
|
||||
using Lidarr.Api.V3.Indexers;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
@@ -10,4 +10,4 @@ namespace NzbDrone.Integration.Test.Client
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Api.Notifications;
|
||||
using System.Collections.Generic;
|
||||
using Lidarr.Api.V3.Notifications;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
@@ -17,4 +17,4 @@ namespace NzbDrone.Integration.Test.Client
|
||||
return Get<List<NotificationResource>>(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using NzbDrone.Api.Indexers;
|
||||
using Lidarr.Api.V3.Indexers;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Api.Tracks;
|
||||
using System.Collections.Generic;
|
||||
using Lidarr.Api.V3.Tracks;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test.Client
|
||||
|
||||
Reference in New Issue
Block a user