diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 16:34:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 16:34:48 -0500 |
commit | d854dedd5297aaa7901fc2b2b304c8b160830836 (patch) | |
tree | 77bddb3f84607c5036807552e59090bac6a60f74 /recipeBuddy/src/app/DataModels/ingredients.ts | |
parent | 6f14fcb0a4692c54b76ea96fc2bc0a683af30838 (diff) | |
parent | e31ace84fbd37623b3863d8959818d7d70129c87 (diff) |
Merge pull request #10 from tuckerevans/elim
Elim
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; + } +} |