summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-12-02 10:57:08 -0500
committerTucker Evans <tuckerevans24@gmail.com>2019-12-02 10:58:19 -0500
commitf84d088056974540183aea6184febd0cc94d3635 (patch)
tree669c4b32cd9259a3ce016f8b953c14b3a4b4cbcc
parent870fb7a7b2faeb9e7e4a99d08d14da61e7b7ad4f (diff)
Add variables from backend
-rw-r--r--recipeBuddy/src/app/DataModels/recipe.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipeBuddy/src/app/DataModels/recipe.ts b/recipeBuddy/src/app/DataModels/recipe.ts
index 71cebd0..cd121dd 100644
--- a/recipeBuddy/src/app/DataModels/recipe.ts
+++ b/recipeBuddy/src/app/DataModels/recipe.ts
@@ -9,8 +9,10 @@ export class Recipe {
private steps: Step[];
private servingSize: number;
private cookTime: number;
+ private timesCooked: number;
private rating: number;
private tags: string[];
+ private photos: string[];
public constructor(id: number, name: string, description: string, ingredients: Ingredients, steps: Steps, servingSize: number, cookTime: number, rating: number, tags: string[]) {
this.id = id;
@@ -51,6 +53,9 @@ export class Recipe {
public getCookTime(): number {
return this.cookTime;
}
+ public getTimesCooked(): number {
+ return timesCooked;
+ }
public getRating(): number {
return this.rating;
@@ -59,4 +64,8 @@ export class Recipe {
public getTags(): string[] {
return this.tags;
}
+
+ public getPhotos(): string[] {
+ return this.photos;
+ }
}