1 {"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"IBHistorySleepItem"}],"languages":["swift"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/iotbluetooth\/ibhistorysleepitem"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"睡眠历史记录"}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"IBHistorySleepItem"}],"title":"IBHistorySleepItem","roleHeading":"Class","role":"symbol","symbolKind":"class","externalID":"s:12IOTBluetooth18IBHistorySleepItemC","modules":[{"name":"IOTBluetooth"}],"navigatorTitle":[{"kind":"identifier","text":"IBHistorySleepItem"}]},"hierarchy":{"paths":[["doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth"]]},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/init()"]},{"title":"Instance Properties","identifiers":["doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/awake","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/deepSleep","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/endTime","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/lightSleep","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/remSleep","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/sleepId","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/startTime","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/states","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/totalSleep","doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/type"]}],"references":{"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/init()":{"role":"symbol","title":"init()","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"()"}],"abstract":[],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/init()","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/init()"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem":{"role":"symbol","title":"IBHistorySleepItem","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"IBHistorySleepItem"}],"abstract":[{"type":"text","text":"睡眠历史记录"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"IBHistorySleepItem"}],"url":"\/documentation\/iotbluetooth\/ibhistorysleepitem"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/states":{"role":"symbol","title":"states","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"states"},{"kind":"text","text":": ["},{"kind":"typeIdentifier","text":"IBSleepState","preciseIdentifier":"s:12IOTBluetooth12IBSleepStateV"},{"kind":"text","text":"]?"}],"abstract":[{"type":"text","text":"睡眠状态"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/states","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/states"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/deepSleep":{"role":"symbol","title":"deepSleep","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"deepSleep"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"IBSleepTime","preciseIdentifier":"s:12IOTBluetooth11IBSleepTimeV"},{"kind":"text","text":"?"}],"abstract":[{"type":"text","text":"深睡时长"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/deepSleep","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/deepsleep"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/remSleep":{"role":"symbol","title":"remSleep","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"remSleep"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"IBSleepTime","preciseIdentifier":"s:12IOTBluetooth11IBSleepTimeV"},{"kind":"text","text":"?"}],"abstract":[{"type":"text","text":"快速动眼时长"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/remSleep","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/remsleep"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth":{"role":"collection","title":"IOTBluetooth","abstract":[],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/type":{"role":"symbol","title":"type","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"type"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"}],"abstract":[{"type":"text","text":"睡眠类型,0:小睡(无总时长之后的所有项目)1:睡眠"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/type","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/type"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/endTime":{"role":"symbol","title":"endTime","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"endTime"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"}],"abstract":[{"type":"text","text":"出睡时间戳,Unix时间戳"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/endTime","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/endtime"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/awake":{"role":"symbol","title":"awake","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"awake"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"IBSleepTime","preciseIdentifier":"s:12IOTBluetooth11IBSleepTimeV"},{"kind":"text","text":"?"}],"abstract":[{"type":"text","text":"清醒时长"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/awake","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/awake"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/lightSleep":{"role":"symbol","title":"lightSleep","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"lightSleep"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"IBSleepTime","preciseIdentifier":"s:12IOTBluetooth11IBSleepTimeV"},{"kind":"text","text":"?"}],"abstract":[{"type":"text","text":"浅睡时长"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/lightSleep","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/lightsleep"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/startTime":{"role":"symbol","title":"startTime","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"startTime"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"}],"abstract":[{"type":"text","text":"入睡时间戳,Unix时间戳"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/startTime","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/starttime"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/totalSleep":{"role":"symbol","title":"totalSleep","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"totalSleep"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"IBSleepTime","preciseIdentifier":"s:12IOTBluetooth11IBSleepTimeV"}],"abstract":[{"type":"text","text":"总时长"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/totalSleep","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/totalsleep"},"doc://com.thisiot.IOTBluetooth/documentation/IOTBluetooth/IBHistorySleepItem/sleepId":{"role":"symbol","title":"sleepId","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"sleepId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"}],"abstract":[{"type":"text","text":"睡眠ID,0~255,表示第几次睡眠"}],"identifier":"doc:\/\/com.thisiot.IOTBluetooth\/documentation\/IOTBluetooth\/IBHistorySleepItem\/sleepId","kind":"symbol","type":"topic","url":"\/documentation\/iotbluetooth\/ibhistorysleepitem\/sleepid"}}}