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.
|
|
|
using System.Collections.Generic;
|
|
|
|
using Lidarr.Api.V1.Tracks;
|
|
|
|
using RestSharp;
|
|
|
|
|
|
|
|
namespace NzbDrone.Integration.Test.Client
|
|
|
|
{
|
|
|
|
public class TrackClient : ClientBase<TrackResource>
|
|
|
|
{
|
|
|
|
public TrackClient(IRestClient restClient, string apiKey)
|
|
|
|
: base(restClient, apiKey, "track")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<TrackResource> GetTracksInArtist(int artistId)
|
|
|
|
{
|
|
|
|
var request = BuildRequest("?artistId=" + artistId.ToString());
|
|
|
|
return Get<List<TrackResource>>(request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|