Class Exercise
An exercise that stores information about a physical activity.
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class Exercise : IMessage<Exercise>, IEquatable<Exercise>, IDeepCloneable<Exercise>, IBufferMessage, IMessage
Constructors
Exercise()
Declaration
public Exercise()
Exercise(Exercise)
Declaration
public Exercise(Exercise other)
Parameters
| Type | Name | Description |
|---|---|---|
| Exercise | other |
Properties
ActiveDuration
Optional. Duration excluding pauses.
Declaration
public Duration ActiveDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| Duration |
CreateTime
Output only. Represents the timestamp of the creation of the exercise.
Declaration
public Timestamp CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
DisplayName
Required. Exercise display name.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExerciseEvents
Optional. Exercise events that happen during an exercise, such as pause & restarts.
Declaration
public RepeatedField<Exercise.Types.ExerciseEvent> ExerciseEvents { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Exercise.Types.ExerciseEvent> |
ExerciseMetadata
Optional. Additional exercise metadata.
Declaration
public Exercise.Types.ExerciseMetadata ExerciseMetadata { get; set; }
Property Value
| Type | Description |
|---|---|
| Exercise.Types.ExerciseMetadata |
ExerciseType
Required. The type of activity performed during an exercise.
Declaration
public Exercise.Types.ExerciseType ExerciseType { get; set; }
Property Value
| Type | Description |
|---|---|
| Exercise.Types.ExerciseType |
Interval
Required. Observed exercise interval
Declaration
public SessionTimeInterval Interval { get; set; }
Property Value
| Type | Description |
|---|---|
| SessionTimeInterval |
MetricsSummary
Required. Summary metrics for this exercise ( )
Declaration
public MetricsSummary MetricsSummary { get; set; }
Property Value
| Type | Description |
|---|---|
| MetricsSummary |
Notes
Optional. Standard free-form notes captured at manual logging.
Declaration
public string Notes { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SplitSummaries
Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
Declaration
public RepeatedField<Exercise.Types.SplitSummary> SplitSummaries { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Exercise.Types.SplitSummary> |
Splits
Optional. The default split is 1 km or 1 mile.
- if the movement distance is less than the default, then there are no splits
- if the movement distance is greater than or equal to the default, then we have splits
Declaration
public RepeatedField<Exercise.Types.SplitSummary> Splits { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Exercise.Types.SplitSummary> |
UpdateTime
Output only. This is the timestamp of the last update to the exercise.
Declaration
public Timestamp UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |