2021-04-24 20:06:52 +02:00
|
|
|
package eu.openaire.urls_controller.payloads.requests;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
import eu.openaire.urls_controller.models.UrlReport;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
@JsonPropertyOrder({
|
|
|
|
"workerId",
|
2021-06-19 06:07:36 +02:00
|
|
|
"assignmentId",
|
2021-04-24 20:06:52 +02:00
|
|
|
"urlReports"
|
|
|
|
})
|
|
|
|
public class WorkerReport {
|
|
|
|
|
|
|
|
@JsonProperty("workerId")
|
|
|
|
private String workerId;
|
|
|
|
|
2021-06-19 06:07:36 +02:00
|
|
|
@JsonProperty("assignmentId")
|
|
|
|
private int assignmentId;
|
|
|
|
|
2021-04-24 20:06:52 +02:00
|
|
|
@JsonProperty("urlReports")
|
|
|
|
private List<UrlReport> urlReports;
|
|
|
|
|
2021-06-19 06:07:36 +02:00
|
|
|
public WorkerReport(String workerId, int assignmentId, List<UrlReport> urlReports) {
|
2021-04-24 20:06:52 +02:00
|
|
|
this.workerId = workerId;
|
2021-06-19 06:07:36 +02:00
|
|
|
this.assignmentId = assignmentId;
|
2021-04-24 20:06:52 +02:00
|
|
|
this.urlReports = urlReports;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getWorkerId() {
|
|
|
|
return workerId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWorkerId(String workerId) {
|
|
|
|
this.workerId = workerId;
|
|
|
|
}
|
|
|
|
|
2021-06-19 06:07:36 +02:00
|
|
|
public int getAssignmentId() {
|
|
|
|
return this.assignmentId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAssignmentId(int assignmentId) {
|
|
|
|
this.assignmentId = assignmentId;
|
|
|
|
}
|
|
|
|
|
2021-04-24 20:06:52 +02:00
|
|
|
public List<UrlReport> getUrlReports() {
|
|
|
|
return this.urlReports;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setUrlReports(List<UrlReport> urlReports) {
|
|
|
|
this.urlReports = urlReports;
|
|
|
|
}
|
2021-06-19 06:07:36 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "WorkerReport{" +
|
|
|
|
"workerId='" + workerId + '\'' +
|
|
|
|
", assignmentId=" + assignmentId +
|
|
|
|
", urlReports=" + urlReports +
|
|
|
|
'}';
|
|
|
|
}
|
2021-04-24 20:06:52 +02:00
|
|
|
}
|