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