diff options
author | chrisundercoffer <55003067+chrisundercoffer@users.noreply.github.com> | 2019-12-09 17:08:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 17:08:51 -0500 |
commit | 67b9f6678c6c588f231bce1f658adfe0e11321ab (patch) | |
tree | bc42a10b22ef6402bdbb41794eee584a56737920 /recipeBuddy/src/app/DataModels/recipe.ts | |
parent | 5cf3689290666f70cd631d7b3d40a2ed245a3fce (diff) | |
parent | 2a46419961ab4db50146434945a57859893f8d54 (diff) |
Merge pull request #14 from tuckerevans/add_page
Add Recipe Page
Diffstat (limited to 'recipeBuddy/src/app/DataModels/recipe.ts')
-rw-r--r-- | recipeBuddy/src/app/DataModels/recipe.ts | 14 |
1 files changed, 13 insertions, 1 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 { |