Foodolini.Activities.Ingredients.IngredientAdapter Class Reference

A TreeNode adapter for the Ingredient class. More...

List of all members.

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.

Detailed Description

A TreeNode adapter for the Ingredient class.

Definition at line 13 of file IngredientAdapter.cs.


Constructor & Destructor Documentation

Foodolini.Activities.Ingredients.IngredientAdapter.IngredientAdapter ( Ingredient  ingredient  ) 

Instantiates a new IngredientAdapter with the supplied Ingredient.

Parameters:
ingredient A Ingredient

Definition at line 26 of file IngredientAdapter.cs.


Property Documentation

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.


The documentation for this class was generated from the following file:

Foodolini 1.0.0 Documentation, generated with DoxyGen.