Update "Task" and "Error" classes.
This commit is contained in:
parent
6a87d3e478
commit
b2dfd524e1
|
@ -1,14 +1,21 @@
|
|||
package eu.openaire.urls_worker.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"type",
|
||||
"message"
|
||||
})
|
||||
public class Error {
|
||||
|
||||
@JsonProperty("type")
|
||||
String type;
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
String message;
|
||||
private String message;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
|
|
|
@ -1,14 +1,22 @@
|
|||
package eu.openaire.urls_worker.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"id",
|
||||
"url"
|
||||
})
|
||||
public class Task {
|
||||
|
||||
@JsonProperty("id")
|
||||
String id;
|
||||
private String id;
|
||||
|
||||
@JsonProperty("url")
|
||||
String url;
|
||||
private String url;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
|
|
Loading…
Reference in New Issue