Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Update servlets to handle IngredientInput#95

Open
tgomezzzz wants to merge 13 commits into
main-cool-ingredientsfrom
update-servlets
Open

Update servlets to handle IngredientInput#95
tgomezzzz wants to merge 13 commits into
main-cool-ingredientsfrom
update-servlets

Conversation

@tgomezzzz

Copy link
Copy Markdown
Contributor

To accommodate the IngredientInput element added in #94, this PR changes NewRecipeServlet's doPost() method to handle the new amount and unit fields of an IngredientInput.

@tgomezzzz
tgomezzzz changed the base branch from master to main-cool-ingredients August 2, 2020 00:48
@tgomezzzz
tgomezzzz requested review from Rmoneygit and angplee August 2, 2020 00:48
@Rmoneygit
Rmoneygit requested review from adamtcohen and vidhyal August 5, 2020 18:02
public Recipe(Entity recipeEntity) {
this.name = (String) recipeEntity.getProperty("name");
this.description = (String) recipeEntity.getProperty("description");
this.time = (double) recipeEntity.getProperty("time");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do any of the other constructors also need these fields?

For the future: we should have used constructor chaining here, but don't worry about it now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants