diff options
author | unknown <schencej@clarkson.edu> | 2019-11-25 10:07:30 -0500 |
---|---|---|
committer | unknown <schencej@clarkson.edu> | 2019-11-25 10:07:30 -0500 |
commit | 5fc0371f5fc0215f48b9f27ac216a359da6997e9 (patch) | |
tree | 887c10117ff0a6ba79f6d4bda0cb815d8dfcd5a2 /recipeBuddy/src/app/DataModels/ingredients.ts | |
parent | 445816bc374be098156b33e2c7051091f391786f (diff) |
Added data models.
Diffstat (limited to 'recipeBuddy/src/app/DataModels/ingredients.ts')
-rw-r--r-- | recipeBuddy/src/app/DataModels/ingredients.ts | 29 |
1 files changed, 29 insertions, 0 deletions
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; + } +} |