-
- All Implemented Interfaces:
-
java.io.Serializable
public class Sleep extends Record implements Serializable
Measurements related to the length of time spent in various sleep cycles, as well as number of times woken during the night.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Sleep.Stage
-
Field Summary
Fields Modifier and Type Field Description private BigDecimal
totalSleep
private BigDecimal
awake
private BigDecimal
deep
private BigDecimal
light
private BigDecimal
rem
private BigDecimal
timesWoken
-
Constructor Summary
Constructors Constructor Description Sleep()
Measurements related to the length of time spent in various sleep cycles, as well as number of times woken during the night . Sleep(Peripheral peripheral)
Base class for all objects that represent health records initialized with a BluetoothPeripheral.
-
Method Summary
Modifier and Type Method Description BigDecimal
getTotalSleep()
Total number of sleep seconds void
setTotalSleep(BigDecimal totalSleep)
Total number of sleep seconds BigDecimal
getAwake()
Seconds awake during recording void
setAwake(BigDecimal awake)
Seconds awake during recording BigDecimal
getDeep()
Deep sleep in seconds void
setDeep(BigDecimal deep)
Deep sleep in seconds BigDecimal
getLight()
Light sleep in seconds void
setLight(BigDecimal light)
Light sleep in seconds BigDecimal
getRem()
Rapid eye movement in seconds void
setRem(BigDecimal rem)
Rapid eye movement in seconds BigDecimal
getTimesWoken()
Number of times woken during sleep recording void
setTimesWoken(BigDecimal timesWoken)
Number of times woken during sleep recording -
Methods inherited from class com.validic.mobile.record.Record
createSummary, getActivityID, getComment, getExtra, getExtras, getHashedString, getIdentifier, getIntermediarySource, getLastUpdated, getMedia, getOriginalSource, getPeripheral, getQueueId, getRecordID, getRecordType, getSource, getSourceName, getSourcePeripheral, getTimestamp, getUtcOffset, getValidated, isSHealthRecord, newRecordFromPeripheral, newRecordWithType, setActivityID, setComment, setHashedActivityId, setIntermediarySource, setLastUpdated, setMedia, setOriginalSource, setPeripheral, setRecordID, setRecordType, setSource, setSourceName, setSourcePeripheral, setTimeStampToMidnight, setTimestamp, setTimestamp, setUtcOffset, setValidated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Sleep
Sleep()
Measurements related to the length of time spent in various sleep cycles, as well as number of times woken during the night .
-
Sleep
Sleep(Peripheral peripheral)
Base class for all objects that represent health records initialized with a BluetoothPeripheral.
-
-
Method Detail
-
getTotalSleep
BigDecimal getTotalSleep()
Total number of sleep seconds
-
setTotalSleep
void setTotalSleep(BigDecimal totalSleep)
Total number of sleep seconds
-
getAwake
BigDecimal getAwake()
Seconds awake during recording
-
setAwake
void setAwake(BigDecimal awake)
Seconds awake during recording
-
getDeep
BigDecimal getDeep()
Deep sleep in seconds
-
setDeep
void setDeep(BigDecimal deep)
Deep sleep in seconds
-
getLight
BigDecimal getLight()
Light sleep in seconds
-
setLight
void setLight(BigDecimal light)
Light sleep in seconds
-
getRem
BigDecimal getRem()
Rapid eye movement in seconds
-
setRem
void setRem(BigDecimal rem)
Rapid eye movement in seconds
-
getTimesWoken
BigDecimal getTimesWoken()
Number of times woken during sleep recording
-
setTimesWoken
void setTimesWoken(BigDecimal timesWoken)
Number of times woken during sleep recording
-
-
-
-