diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-07 14:27:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-07 14:27:26 -0500 |
commit | 5cf3689290666f70cd631d7b3d40a2ed245a3fce (patch) | |
tree | e6f2938377890774ff3e80fae8f77797917a46e5 /recipeBuddy/src/app/DataModels/recipe.ts | |
parent | cafe1b4fd3cc02554f44ffbaa8467d867a6838cb (diff) | |
parent | 658dea27e47e3aab24598a74ee9940f82bea2368 (diff) |
Merge pull request #12 from tuckerevans/REST-service
Backend REST Service implementation
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; |