Remove Previous API

This commit is contained in:
Qstick
2017-09-21 00:18:47 -04:00
parent 0201aa812e
commit 8d64a987e0
153 changed files with 118 additions and 8307 deletions

View 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);
}
}
}

View File

@@ -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

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
using NzbDrone.Api.Commands;
using Lidarr.Api.V3.Commands;
using RestSharp;
using NzbDrone.Core.Messaging.Commands;
using FluentAssertions;

View File

@@ -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);
}
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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
{
}
}
}
}

View File

@@ -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);
}
}
}
}

View File

@@ -1,4 +1,4 @@
using NzbDrone.Api.Indexers;
using Lidarr.Api.V3.Indexers;
using RestSharp;
namespace NzbDrone.Integration.Test.Client

View File

@@ -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