A TreeNode adapter for the Ingredient class. More...
Public Member Functions | |
IngredientAdapter (Ingredient ingredient) | |
Instantiates a new IngredientAdapter with the supplied Ingredient. | |
Properties | |
Ingredient | Ingredient [get, set] |
The Ingredient instance. | |
string | Name [get] |
The name of the ingredient. | |
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 13 of file IngredientAdapter.cs.
Foodolini.Activities.Ingredients.IngredientAdapter.IngredientAdapter | ( | Ingredient | ingredient | ) |
Instantiates a new IngredientAdapter with the supplied Ingredient.
ingredient | A Ingredient |
Definition at line 26 of file IngredientAdapter.cs.
double Foodolini.Activities.Ingredients.IngredientAdapter.Carbohydrates [get] |
The amount of carbohydrates/100g in the ingredient.
Definition at line 51 of file IngredientAdapter.cs.
double Foodolini.Activities.Ingredients.IngredientAdapter.Fat [get] |
The amount of fat/100g in the ingredient.
Definition at line 59 of file IngredientAdapter.cs.
Ingredient Foodolini.Activities.Ingredients.IngredientAdapter.Ingredient [get, set] |
The Ingredient instance.
Definition at line 18 of file IngredientAdapter.cs.
string Foodolini.Activities.Ingredients.IngredientAdapter.Name [get] |
The name of the ingredient.
Definition at line 35 of file IngredientAdapter.cs.
double Foodolini.Activities.Ingredients.IngredientAdapter.Protein [get] |
The amount of protein/100g in the ingredient.
Definition at line 43 of file IngredientAdapter.cs.