45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package eu.openaire.urls_worker.payloads.responces;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
import eu.openaire.urls_worker.models.UrlReport;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
@JsonPropertyOrder({
|
|
"workerId",
|
|
"url"
|
|
})
|
|
public class WorkerReport {
|
|
|
|
@JsonProperty("workerId")
|
|
private String workerId;
|
|
|
|
@JsonProperty("urlReports")
|
|
private List<UrlReport> urlReports;
|
|
|
|
public WorkerReport(String workerId, List<UrlReport> urlReports) {
|
|
this.workerId = workerId;
|
|
this.urlReports = urlReports;
|
|
}
|
|
|
|
public String getWorkerId() {
|
|
return workerId;
|
|
}
|
|
|
|
public void setWorkerId(String workerId) {
|
|
this.workerId = workerId;
|
|
}
|
|
|
|
public List<UrlReport> getUrlReports() {
|
|
return urlReports;
|
|
}
|
|
|
|
public void setUrlReports(List<UrlReport> urlReports) {
|
|
this.urlReports = urlReports;
|
|
}
|
|
}
|