blob: f755c0c90422c46fe0c60b8e5c0d92728e305931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
export class Ingredient {
public name: string;
public amount: number;
public unit: string;
public type_: string;
public cart_index: number;
public checked: boolean;
public constructor(name: string, amount: number, unit: string, type_: string) {
this.name = name;
this.amount = amount;
this.unit = unit;
this.type_ = type_;
}
public getName(): string {
return this.name;
}
public getAmount(): number {
return this.amount;
}
public getUnit(): string {
return this.unit;
}
public getType(): string {
return this.type_;
}
}
|