diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 10:55:46 -0500 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 10:58:16 -0500 |
commit | 870fb7a7b2faeb9e7e4a99d08d14da61e7b7ad4f (patch) | |
tree | d948c0056c84da1c539c1d9b9e983420cf896831 | |
parent | 737063651a31b05631fbb3fae5803da5db0ee389 (diff) |
Fix Steps as array in recipe
-rw-r--r-- | recipeBuddy/src/app/DataModels/recipe.ts | 2 | ||||
-rw-r--r-- | recipeBuddy/src/app/DataModels/step.spec.ts (renamed from recipeBuddy/src/app/DataModels/steps.spec.ts) | 0 | ||||
-rw-r--r-- | recipeBuddy/src/app/DataModels/step.ts | 18 | ||||
-rw-r--r-- | recipeBuddy/src/app/DataModels/steps.ts | 18 |
4 files changed, 19 insertions, 19 deletions
diff --git a/recipeBuddy/src/app/DataModels/recipe.ts b/recipeBuddy/src/app/DataModels/recipe.ts index 7ca7421..71cebd0 100644 --- a/recipeBuddy/src/app/DataModels/recipe.ts +++ b/recipeBuddy/src/app/DataModels/recipe.ts @@ -6,7 +6,7 @@ export class Recipe { private name: string; private description: string; private ingredients: Ingredient[]; - private steps: Steps; + private steps: Step[]; private servingSize: number; private cookTime: number; private rating: number; diff --git a/recipeBuddy/src/app/DataModels/steps.spec.ts b/recipeBuddy/src/app/DataModels/step.spec.ts index e315565..e315565 100644 --- a/recipeBuddy/src/app/DataModels/steps.spec.ts +++ b/recipeBuddy/src/app/DataModels/step.spec.ts diff --git a/recipeBuddy/src/app/DataModels/step.ts b/recipeBuddy/src/app/DataModels/step.ts new file mode 100644 index 0000000..674a6df --- /dev/null +++ b/recipeBuddy/src/app/DataModels/step.ts @@ -0,0 +1,18 @@ +export class Steps { + private instruction: string; + private timer: number; + + public contructor(instruction: string, timer: number) { + this.instruction = instruction; + this.timer = timer; + } + + public getInstruction(): string { + return this.instruction; + } + + public getTimer(): number { + return this.timer; + } + +} diff --git a/recipeBuddy/src/app/DataModels/steps.ts b/recipeBuddy/src/app/DataModels/steps.ts deleted file mode 100644 index 9061dc2..0000000 --- a/recipeBuddy/src/app/DataModels/steps.ts +++ /dev/null @@ -1,18 +0,0 @@ -export class Steps { - private instructions: string[]; - private timers: number[]; - - public contructor(instructions: string[], timers: number[]) { - this.instructions = instructions; - this.timers = timers; - } - - public getInstructions(): string[] { - return this.instructions; - } - - public getTimers(): number[] { - return this.timers; - } - -} |