Class EnergyQuantity
Represents the energy quantity.
Implements
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class EnergyQuantity : IMessage<EnergyQuantity>, IEquatable<EnergyQuantity>, IDeepCloneable<EnergyQuantity>, IBufferMessage, IMessage
Constructors
EnergyQuantity()
Declaration
public EnergyQuantity()
EnergyQuantity(EnergyQuantity)
Declaration
public EnergyQuantity(EnergyQuantity other)
Parameters
| Type | Name | Description |
|---|---|---|
| EnergyQuantity | other |
Properties
HasKcal
Gets whether the "kcal" field is set
Declaration
public bool HasKcal { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Kcal
Required. Value representing the energy in kilocalories.
Declaration
public double Kcal { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
UserProvidedUnit
Optional. Value representing the user provided unit.
Declaration
public EnergyUnit UserProvidedUnit { get; set; }
Property Value
| Type | Description |
|---|---|
| EnergyUnit |