mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-28 23:06:43 -04:00
21 lines
541 B
C#
21 lines
541 B
C#
using System.Collections.Generic;
|
|
using Readarr.Api.V1.Books;
|
|
using RestSharp;
|
|
|
|
namespace NzbDrone.Integration.Test.Client
|
|
{
|
|
public class BookClient : ClientBase<BookResource>
|
|
{
|
|
public BookClient(IRestClient restClient, string apiKey)
|
|
: base(restClient, apiKey, "book")
|
|
{
|
|
}
|
|
|
|
public List<BookResource> GetBooksInAuthor(int authorId)
|
|
{
|
|
var request = BuildRequest("?authorId=" + authorId.ToString());
|
|
return Get<List<BookResource>>(request);
|
|
}
|
|
}
|
|
}
|