summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+ }
}