Merge pull request #38 from cato447/fix-recipe-model
added sourceUrl as property to recipe
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user