Merge pull request #38 from cato447/fix-recipe-model

added sourceUrl as property to recipe
This commit is contained in:
cato
2022-07-18 19:12:41 +02:00
committed by GitHub

View File

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