Finished restructuring and changed way of querying the API

This commit is contained in:
2022-07-13 04:25:40 +02:00
parent f7455019c3
commit c5014c4a11
6 changed files with 106 additions and 46 deletions

View File

@@ -56,4 +56,10 @@ public class ExtendedRecipeByIngredient extends Recipe {
this.usedIngredients = usedIngredients;
}
public void addMissingInfo(RecipeByIngredient recipeByIngredient){
this.setMissedIngredientCount(recipeByIngredient.getMissedIngredientCount());
this.setUsedIngredientCount(recipeByIngredient.getUsedIngredientCount());
this.setMissedIngredients(recipeByIngredient.getMissedIngredients());
this.setUsedIngredients(recipeByIngredient.getUsedIngredients());
}
}