mirror of
https://github.com/theotherp/nzbhydra2.git
synced 2026-02-06 11:17:18 +00:00
Fix external API stats requests
Some checks are pending
system-test / waitForNative (push) Waiting to run
system-test / buildMockserver (push) Waiting to run
system-test / runSystemTestsLinux (map[name:core port:5076]) (push) Blocked by required conditions
system-test / runSystemTestsLinux (map[name:v1Migration port:5077]) (push) Blocked by required conditions
system-test / runSystemTestsWindows (push) Blocked by required conditions
Some checks are pending
system-test / waitForNative (push) Waiting to run
system-test / buildMockserver (push) Waiting to run
system-test / runSystemTestsLinux (map[name:core port:5076]) (push) Blocked by required conditions
system-test / runSystemTestsLinux (map[name:v1Migration port:5077]) (push) Blocked by required conditions
system-test / runSystemTestsWindows (push) Blocked by required conditions
This commit is contained in:
parent
3eefb68cef
commit
5812f8892c
@ -16,26 +16,18 @@
|
||||
|
||||
package org.nzbhydra.api.stats;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nzbhydra.historystats.stats.HistoryRequest;
|
||||
import org.nzbhydra.springnative.ReflectionMarker;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@ReflectionMarker
|
||||
public class ApiHistoryRequest {
|
||||
|
||||
private String apikey;
|
||||
private HistoryRequest request = new HistoryRequest();
|
||||
|
||||
public String getApikey() {
|
||||
return apikey;
|
||||
}
|
||||
|
||||
public void setApikey(String apikey) {
|
||||
this.apikey = apikey;
|
||||
}
|
||||
|
||||
public HistoryRequest getRequest() {
|
||||
return request;
|
||||
}
|
||||
|
||||
public void setRequest(HistoryRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,10 +16,12 @@
|
||||
|
||||
package org.nzbhydra.api.stats;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import org.nzbhydra.historystats.stats.StatsRequest;
|
||||
import org.nzbhydra.springnative.ReflectionMarker;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Data
|
||||
@ReflectionMarker
|
||||
public class ApiStatsRequest {
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
package org.nzbhydra.historystats;
|
||||
|
||||
import org.nzbhydra.springnative.ReflectionMarker;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@ReflectionMarker
|
||||
public class FilterModel extends HashMap<String, FilterDefinition> {
|
||||
|
||||
}
|
||||
|
||||
@ -1,11 +1,15 @@
|
||||
package org.nzbhydra.historystats.stats;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nzbhydra.historystats.FilterModel;
|
||||
import org.nzbhydra.historystats.SortModel;
|
||||
import org.nzbhydra.springnative.ReflectionMarker;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ReflectionMarker
|
||||
public class HistoryRequest {
|
||||
|
||||
@ -16,7 +20,5 @@ public class HistoryRequest {
|
||||
protected FilterModel filterModel = new FilterModel();
|
||||
protected SortModel sortModel;
|
||||
|
||||
public HistoryRequest() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user