summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/DataModels/recipe.ts
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-12-07 15:05:42 -0500
committerTucker Evans <tuckerevans24@gmail.com>2019-12-07 15:05:42 -0500
commitac33c29faf55b640066641d2c328d841fa3e593b (patch)
tree81d53524e0decc1e8b7e3c2fab59aed0135a056b /recipeBuddy/src/app/DataModels/recipe.ts
parent33ff048f5efb30e767780f24424588af562ea400 (diff)
parentcafe1b4fd3cc02554f44ffbaa8467d867a6838cb (diff)
Merge commit 'cafe1b4fd3cc02554f44ffbaa8467d867a6838cb' into chrisundercoffer
Diffstat (limited to 'recipeBuddy/src/app/DataModels/recipe.ts')
-rw-r--r--recipeBuddy/src/app/DataModels/recipe.ts71
1 files changed, 71 insertions, 0 deletions
diff --git a/recipeBuddy/src/app/DataModels/recipe.ts b/recipeBuddy/src/app/DataModels/recipe.ts
new file mode 100644
index 0000000..3194adc
--- /dev/null
+++ b/recipeBuddy/src/app/DataModels/recipe.ts
@@ -0,0 +1,71 @@
+import {Steps} from "./steps"
+import {Ingredients} from "./ingredients"
+
+export class Recipe {
+ private id: number;
+ private name: string;
+ private description: string;
+ private ingredients: Ingredient[];
+ 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;
+ this.name = name;
+ this.description = description;
+ this.ingredients = ingredients;
+ this.steps = steps;
+ this.servingSize = servingSize;
+ this.cookTime = cookTime;
+ this.rating = rating;
+ this.tags = tags;
+ }
+
+ public getId(): number {
+ return this.id;
+ }
+
+ public getName(): string {
+ return this.name;
+ }
+
+ public getDescription(): string {
+ return this.description;
+ }
+
+ public getIngredients(): Ingredients {
+ return this.ingredients;
+ }
+
+ public getSteps(): Steps {
+ return this.steps;
+ }
+
+ public getServingSize(): number {
+ return this.servingSize;
+ }
+
+ public getCookTime(): number {
+ return this.cookTime;
+ }
+
+ public getTimesCooked(): number {
+ return timesCooked;
+ }
+ public getRating(): number {
+ return this.rating;
+ }
+
+ public getTags(): string[] {
+ return this.tags;
+ }
+
+ public getPhotos(): string[] {
+ return this.photos;
+ }
+}