Package com.cis.gorecipe.model
Class Recipe
java.lang.Object
com.cis.gorecipe.model.Recipe
This class allows GoRecipe to store the recipes that will power the core feature of the application
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Longprivate StringAn optional hyperlink to an image of the prepared recipeprivate List<Ingredient>The list of ingredients to be used in the recipeprivate StringThe formatted text containing the recipe instructionsprivate StringThe unique recipe name (e.g.private IntegerHow many minutes does the recipe take to prepareprivate StringThe hyperlink to where the recipe is from (e.g.private LongIf the recipe was sourced from the Spoonacular API, what is their ID for itThis collection stores the ingredient names and quantitiesprivate StringAn optional hyperlink to a 3rd party video demonstrating the recipe -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
-
prepTime
How many minutes does the recipe take to prepare -
spoonacularId
If the recipe was sourced from the Spoonacular API, what is their ID for it -
name
The unique recipe name (e.g. French Onion Soup), also serves as PK -
instructions
The formatted text containing the recipe instructions -
ingredients
The list of ingredients to be used in the recipe -
verboseIngredients
This collection stores the ingredient names and quantities -
imageURL
An optional hyperlink to an image of the prepared recipe -
videoURL
An optional hyperlink to a 3rd party video demonstrating the recipe -
sourceURL
The hyperlink to where the recipe is from (e.g. NYT Cooking, AllRecipes, Bon Appétit, etc.)
-
-
Constructor Details
-
Recipe
public Recipe()
-
-
Method Details