Package 

Class Sleep

  • 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
    • 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