summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/DataModels
diff options
context:
space:
mode:
authorChris Undercoffer <undercofferch18@gmail.com>2019-12-09 17:13:47 -0500
committerChris Undercoffer <undercofferch18@gmail.com>2019-12-09 17:13:47 -0500
commitd04ec02a64e85d13f04e8a5567d82ae2bcce3ff0 (patch)
treee5841b7fda2a49bf8875cbf17aefe4a44ef58131 /recipeBuddy/src/app/DataModels
parentc3666978e0eef9eeb52d4e383a98d3ef075c37da (diff)
parent67b9f6678c6c588f231bce1f658adfe0e11321ab (diff)
Merge branch 'master' into shoppingcart
Diffstat (limited to 'recipeBuddy/src/app/DataModels')
-rw-r--r--recipeBuddy/src/app/DataModels/recipe.ts14
-rw-r--r--recipeBuddy/src/app/DataModels/step.ts2
2 files changed, 14 insertions, 2 deletions
diff --git a/recipeBuddy/src/app/DataModels/recipe.ts b/recipeBuddy/src/app/DataModels/recipe.ts
index 368f237..937153f 100644
--- a/recipeBuddy/src/app/DataModels/recipe.ts
+++ b/recipeBuddy/src/app/DataModels/recipe.ts
@@ -14,7 +14,17 @@ export class Recipe {
private tags: string[];
private photos: string[];
- public constructor(id: number, name: string, description: string, ingredients: Ingredient[], steps: Step[], servingSize: number, cookTime: number, rating: number, tags: string[]) {
+ public constructor(id: number,
+ name: string,
+ description: string,
+ ingredients: Ingredient[],
+ steps: Step[],
+ servingSize: number,
+ cookTime: number,
+ timesCooked: number,
+ rating: number,
+ tags: string[],
+ photos: string[]) {
this.id = id;
this.name = name;
this.description = description;
@@ -24,6 +34,8 @@ export class Recipe {
this.cookTime = cookTime;
this.rating = rating;
this.tags = tags;
+ this.photos = photos;
+ this.timesCooked = timesCooked;
}
public getId(): number {
diff --git a/recipeBuddy/src/app/DataModels/step.ts b/recipeBuddy/src/app/DataModels/step.ts
index 1c1ca7b..67e14c1 100644
--- a/recipeBuddy/src/app/DataModels/step.ts
+++ b/recipeBuddy/src/app/DataModels/step.ts
@@ -2,7 +2,7 @@ export class Step {
private instruction: string;
private timer: number;
- public contructor(instruction: string, timer: number) {
+ public constructor(instruction: string, timer: number) {
this.instruction = instruction;
this.timer = timer;
}