Show / Hide Table of Contents

Class Sleep.Types.SleepSummary

Sleep summary: metrics and stages summary.

Inheritance
object
Sleep.Types.SleepSummary
Implements
IMessage<Sleep.Types.SleepSummary>
IEquatable<Sleep.Types.SleepSummary>
IDeepCloneable<Sleep.Types.SleepSummary>
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 Sleep.Types.SleepSummary : IMessage<Sleep.Types.SleepSummary>, IEquatable<Sleep.Types.SleepSummary>, IDeepCloneable<Sleep.Types.SleepSummary>, IBufferMessage, IMessage

Constructors

SleepSummary()

Declaration
public SleepSummary()

SleepSummary(SleepSummary)

Declaration
public SleepSummary(Sleep.Types.SleepSummary other)
Parameters
Type Name Description
Sleep.Types.SleepSummary other

Properties

HasMinutesAfterWakeUp

Gets whether the "minutes_after_wake_up" field is set

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

HasMinutesAsleep

Gets whether the "minutes_asleep" field is set

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

HasMinutesAwake

Gets whether the "minutes_awake" field is set

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

HasMinutesInSleepPeriod

Gets whether the "minutes_in_sleep_period" field is set

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

HasMinutesToFallAsleep

Gets whether the "minutes_to_fall_asleep" field is set

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

MinutesAfterWakeUp

Output only. Minutes after wake up calculated by restlessness algorithm.

Declaration
public long MinutesAfterWakeUp { get; set; }
Property Value
Type Description
long

MinutesAsleep

Output only. Total number of minutes asleep. For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages (excluding AWAKE).

Declaration
public long MinutesAsleep { get; set; }
Property Value
Type Description
long

MinutesAwake

Output only. Total number of minutes awake. It is a sum of all AWAKE stages.

Declaration
public long MinutesAwake { get; set; }
Property Value
Type Description
long

MinutesInSleepPeriod

Output only. Delta between wake time and bedtime. It is the sum of all stages.

Declaration
public long MinutesInSleepPeriod { get; set; }
Property Value
Type Description
long

MinutesToFallAsleep

Output only. Minutes to fall asleep calculated by restlessness algorithm.

Declaration
public long MinutesToFallAsleep { get; set; }
Property Value
Type Description
long

StagesSummary

Output only. List of summaries (total duration and segment count) per each sleep stage type.

Declaration
public RepeatedField<Sleep.Types.SleepSummary.Types.StageSummary> StagesSummary { get; }
Property Value
Type Description
RepeatedField<Sleep.Types.SleepSummary.Types.StageSummary>
In this article
Back to top Generated by DocFX