Foodolini.Activities.IngredientAdapter Class Reference

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

List of all members.

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.

Detailed Description

A TreeNode adapter for the Ingredient class.

Definition at line 9 of file IngredientAdapter.cs.


Constructor & Destructor Documentation

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.

Parameters:
ingredient A Ingredient

Definition at line 25 of file IngredientAdapter.cs.


Property Documentation

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.


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

Generated on Thu Dec 10 14:04:00 2009 for Foodolini by  doxygen 1.6.1