Class FoodMeasurementUnit
Represents a food measurement unit.
Implements
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class FoodMeasurementUnit : IMessage<FoodMeasurementUnit>, IEquatable<FoodMeasurementUnit>, IDeepCloneable<FoodMeasurementUnit>, IBufferMessage, IMessage
Constructors
FoodMeasurementUnit()
Declaration
public FoodMeasurementUnit()
FoodMeasurementUnit(FoodMeasurementUnit)
Declaration
public FoodMeasurementUnit(FoodMeasurementUnit other)
Parameters
| Type | Name | Description |
|---|---|---|
| FoodMeasurementUnit | other |
Properties
DisplayName
Required. The display name of the food measurement unit (e.g., "gram", "piece").
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PluralDisplayName
Optional. The plural display name of the food measurement unit (e.g., "grams", "pieces").
Declaration
public string PluralDisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |