FoodEnergyValue Class

Definition

Information related to the amount of nutrient consumed.

public class FoodEnergyValue : Microsoft.Health.ItemTypes.Measurement<double>
Inheritance

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Constructors

FoodEnergyValue()

Creates a new instance of the FoodEnergyValue class with default values.

FoodEnergyValue(Double)

Creates a new instance of the FoodEnergyValue class specifying mandatory values.

FoodEnergyValue(Double, DisplayValue)

Creates a new instance of the FoodEnergyValue class specifying mandatory values.

Properties

Calories

Gets or sets the amount of calories consumed.

Methods

AssertMeasurementValue(Double)

Verifies the value is a legal calories value.

GetValueString(Double)

Gets a string representation of the calories in the base units.

ParseValueXml(XPathNavigator)

Populates the data for the energy value from the XML.

WriteValueXml(XmlWriter)

Writes the energy value to the specified XML writer.