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.
21 lines
548 B
21 lines
548 B
using System.Collections.Generic;
|
|
using Lidarr.Api.V1.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);
|
|
}
|
|
}
|
|
}
|