Show / Hide Table of Contents

Class Food.Types.FoodServing

Represents different properties and information about the serving of a specific food.

Inheritance
object
Food.Types.FoodServing
Implements
IMessage<Food.Types.FoodServing>
IEquatable<Food.Types.FoodServing>
IDeepCloneable<Food.Types.FoodServing>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class Food.Types.FoodServing : IMessage<Food.Types.FoodServing>, IEquatable<Food.Types.FoodServing>, IDeepCloneable<Food.Types.FoodServing>, IBufferMessage, IMessage

Constructors

FoodServing()

Declaration
public FoodServing()

FoodServing(FoodServing)

Declaration
public FoodServing(Food.Types.FoodServing other)
Parameters
Type Name Description
Food.Types.FoodServing other

Properties

Amount

Optional. Amount of food consumed, fractional values are supported.

Declaration
public double Amount { get; set; }
Property Value
Type Description
double

FoodMeasurementUnit

Required. Food measurement unit

Declaration
public string FoodMeasurementUnit { get; set; }
Property Value
Type Description
string

FoodMeasurementUnitAsDataPointName

DataPointName-typed view over the FoodMeasurementUnit resource name property.

Declaration
public DataPointName FoodMeasurementUnitAsDataPointName { get; set; }
Property Value
Type Description
DataPointName

FoodMeasurementUnitDisplayName

Output only. Legacy measurement unit for serving size in singular form (e.g. "piece", "gram").

Declaration
public string FoodMeasurementUnitDisplayName { get; set; }
Property Value
Type Description
string

FoodMeasurementUnitDisplayNamePlural

Output only. Legacy measurement unit for serving size in plural form (e.g. "pieces", "grams").

Declaration
public string FoodMeasurementUnitDisplayNamePlural { get; set; }
Property Value
Type Description
string

HasAmount

Gets whether the "amount" field is set

Declaration
public bool HasAmount { get; }
Property Value
Type Description
bool

Multiplier

Optional. Value representing the multiplier used to compute the energy when using this serving instead of the default serving.

Declaration
public double Multiplier { get; set; }
Property Value
Type Description
double
In this article
Back to top Generated by DocFX