A TreeNode adapter for the Ingredient class. More...
Public Member Functions | |
IngredientAdapter (Ingredient ingredient, double quantity) | |
IngredientAdapter (Ingredient ingredient) | |
Instantiates a new IngredientAdapter with the supplied Ingredient. | |
Properties | |
string | Name [get] |
The name of the ingredient. | |
double | Quantity [get, set] |
string | Storage [get, set] |
string | Expiration [get, set] |
Ingredient | Ingredient [get, set] |
The Ingredient instance. | |
double | Protein [get] |
The amount of protein/100g in the ingredient. | |
double | Carbohydrates [get] |
The amount of carbohydrates/100g in the ingredient. | |
double | Fat [get] |
The amount of fat/100g in the ingredient. |
A TreeNode adapter for the Ingredient class.
Definition at line 9 of file IngredientAdapter.cs.
Foodolini.Activities.IngredientAdapter.IngredientAdapter | ( | Ingredient | ingredient, | |
double | quantity | |||
) |
Definition at line 12 of file IngredientAdapter.cs.
Foodolini.Activities.IngredientAdapter.IngredientAdapter | ( | Ingredient | ingredient | ) |
Instantiates a new IngredientAdapter with the supplied Ingredient.
ingredient | A Ingredient |
Definition at line 25 of file IngredientAdapter.cs.
double Foodolini.Activities.IngredientAdapter.Carbohydrates [get] |
The amount of carbohydrates/100g in the ingredient.
Definition at line 50 of file IngredientAdapter.cs.
string Foodolini.Activities.IngredientAdapter.Expiration [get, set] |
Definition at line 39 of file IngredientAdapter.cs.
double Foodolini.Activities.IngredientAdapter.Fat [get] |
The amount of fat/100g in the ingredient.
Definition at line 58 of file IngredientAdapter.cs.
Ingredient Foodolini::Activities.IngredientAdapter::Ingredient [get, set] |
The Ingredient instance.
Getter og private setter for the ingredient
Definition at line 44 of file IngredientAdapter.cs.
string Foodolini::Activities.IngredientAdapter::Name [get] |
The name of the ingredient.
Getter for the name of the ingredient
Definition at line 22 of file IngredientAdapter.cs.
double Foodolini.Activities.IngredientAdapter.Protein [get] |
The amount of protein/100g in the ingredient.
Definition at line 42 of file IngredientAdapter.cs.
double Foodolini.Activities.IngredientAdapter.Quantity [get, set] |
Getter and setter for the amount of the ingredient
Definition at line 30 of file IngredientAdapter.cs.
string Foodolini.Activities.IngredientAdapter.Storage [get, set] |
Getter and setter for the type of storage
Definition at line 36 of file IngredientAdapter.cs.