added sourceUrl as property to recipe

This commit is contained in:
2022-07-18 19:00:08 +02:00
parent 820601037e
commit b331f8eff8

View File

@@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.*;
"readyInMinutes", "readyInMinutes",
"servings", "servings",
"image", "image",
"sourceUrl",
"spoonacularSourceUrl" "spoonacularSourceUrl"
}) })
@Generated("jsonschema2pojo") @Generated("jsonschema2pojo")
@@ -44,6 +45,8 @@ public class Recipe {
private Integer servings; private Integer servings;
@JsonProperty("image") @JsonProperty("image")
private String image; private String image;
@JsonProperty("sourceUrl")
private String sourceUrl;
@JsonProperty("spoonacularSourceUrl") @JsonProperty("spoonacularSourceUrl")
private String spoonacularSourceUrl; private String spoonacularSourceUrl;
@@ -147,4 +150,14 @@ public class Recipe {
this.spoonacularSourceUrl = spoonacularSourceUrl; this.spoonacularSourceUrl = spoonacularSourceUrl;
} }
@JsonProperty("sourceUrl")
public String getSourceUrl() {
return sourceUrl;
}
@JsonProperty("sourceUrl")
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
} }