diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 19:48:15 -0500 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 19:57:35 -0500 |
commit | f94d81c5283cbf5be2f2a96faa21807e381e1c5c (patch) | |
tree | b8400e597075df46446f1772fc4594f824548dda /recipeBuddy/src/app/DataModels/recipe.ts | |
parent | daf0ba705ff8692e83e8343778bc34cbc93beff3 (diff) |
Fix typos in DataModels
Mostly variable name fixes and type fixes.
Also delete unused DataModels
Diffstat (limited to 'recipeBuddy/src/app/DataModels/recipe.ts')
-rw-r--r-- | recipeBuddy/src/app/DataModels/recipe.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recipeBuddy/src/app/DataModels/recipe.ts b/recipeBuddy/src/app/DataModels/recipe.ts index 3194adc..368f237 100644 --- a/recipeBuddy/src/app/DataModels/recipe.ts +++ b/recipeBuddy/src/app/DataModels/recipe.ts @@ -1,5 +1,5 @@ -import {Steps} from "./steps" -import {Ingredients} from "./ingredients" +import {Step} from "./step" +import {Ingredient} from "./ingredient" export class Recipe { private id: number; @@ -14,7 +14,7 @@ export class Recipe { 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[]) { + public constructor(id: number, name: string, description: string, ingredients: Ingredient[], steps: Step[], servingSize: number, cookTime: number, rating: number, tags: string[]) { this.id = id; this.name = name; this.description = description; @@ -38,11 +38,11 @@ export class Recipe { return this.description; } - public getIngredients(): Ingredients { + public getIngredients(): Ingredient[] { return this.ingredients; } - public getSteps(): Steps { + public getSteps(): Step[] { return this.steps; } @@ -55,7 +55,7 @@ export class Recipe { } public getTimesCooked(): number { - return timesCooked; + return this.timesCooked; } public getRating(): number { return this.rating; |