retrieve full queue list
This commit is contained in:
parent
87e7e69c7a
commit
d28ea41894
|
@ -19,7 +19,12 @@ public interface SonarrAPIInterface extends APIInterface {
|
|||
@GET
|
||||
@Path("/queue")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
SonarrQueue getQueue(@QueryParam("apikey") String apikey);
|
||||
SonarrQueue getFirstPageQueue(@QueryParam("apikey") String apikey);
|
||||
|
||||
@GET
|
||||
@Path("/queue")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
SonarrQueue getQueue(@QueryParam("apikey") String apikey, @QueryParam("pageSize") int pageSize);
|
||||
|
||||
@DELETE
|
||||
@Path("/queue/{id}")
|
||||
|
|
|
@ -26,8 +26,12 @@ public class SonarrApiGateway {
|
|||
logger = new EasyLogger();
|
||||
}
|
||||
|
||||
public SonarrQueue getQueue() {
|
||||
return proxy.getQueue(apiKey);
|
||||
public SonarrQueue getSimpleQueue() {
|
||||
return proxy.getFirstPageQueue(apiKey);
|
||||
}
|
||||
|
||||
public SonarrQueue getFullQueue() {
|
||||
return proxy.getQueue(apiKey, 1000);
|
||||
}
|
||||
|
||||
public void deleteQueueElement(Integer idElement) {
|
||||
|
|
Loading…
Reference in New Issue