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