From 5fc0371f5fc0215f48b9f27ac216a359da6997e9 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 25 Nov 2019 10:07:30 -0500 Subject: Added data models. --- recipeBuddy/src/app/DataModels/ingredients.ts | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipeBuddy/src/app/DataModels/ingredients.ts (limited to 'recipeBuddy/src/app/DataModels/ingredients.ts') diff --git a/recipeBuddy/src/app/DataModels/ingredients.ts b/recipeBuddy/src/app/DataModels/ingredients.ts new file mode 100644 index 0000000..6f96e69 --- /dev/null +++ b/recipeBuddy/src/app/DataModels/ingredients.ts @@ -0,0 +1,29 @@ +export class Ingredients { + private names: string[]; + private amounts: number[]; + private units: string[]; + private types: string[]; + + public constructor(names: string[], amounts: number[], units: string[], types: string[]) { + this.names = names; + this.amounts = amounts; + this.units = units; + this.types = types; + } + + public getNames(): string[] { + return this.names; + } + + public getAmounts(): number[] { + return this.amounts; + } + + public getUnits(): string[] { + return this.units; + } + + public getTypes(): string[] { + return this.types; + } +} -- cgit v1.1