summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/DataModels
diff options
context:
space:
mode:
authorschencej <schencej@clarkson.edu>2019-12-09 17:56:04 -0500
committerschencej <schencej@clarkson.edu>2019-12-09 17:56:04 -0500
commitdb8a87f4903ad224238f938d1b36594001e7333f (patch)
tree58825d7f1a197951126a992441c10ea72604ba38 /recipeBuddy/src/app/DataModels
parent2b43753e546b85ad3aea411df9636b23153fb9d8 (diff)
parentc37cbf8fbdb48ce8fc14a76ded2ff5401d7bae4d (diff)
Merge branch 'master' of https://github.com/tuckerevans/recipe_buddy into elim
Diffstat (limited to 'recipeBuddy/src/app/DataModels')
-rw-r--r--recipeBuddy/src/app/DataModels/recipe.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/recipeBuddy/src/app/DataModels/recipe.ts b/recipeBuddy/src/app/DataModels/recipe.ts
index 9d833be..18c4716 100644
--- a/recipeBuddy/src/app/DataModels/recipe.ts
+++ b/recipeBuddy/src/app/DataModels/recipe.ts
@@ -14,7 +14,17 @@ export class Recipe {
public tags: string[];
public 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 {