capacitor-plugin-ihealth 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/CapacitorPluginIhealth.podspec +35 -0
  2. package/README.md +214 -0
  3. package/android/build.gradle +58 -0
  4. package/android/src/main/AndroidManifest.xml +2 -0
  5. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealth.java +11 -0
  6. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealthPlugin.java +22 -0
  7. package/android/src/main/res/.gitkeep +0 -0
  8. package/dist/docs.json +450 -0
  9. package/dist/esm/definitions.d.ts +29 -0
  10. package/dist/esm/definitions.js +2 -0
  11. package/dist/esm/definitions.js.map +1 -0
  12. package/dist/esm/index.d.ts +4 -0
  13. package/dist/esm/index.js +7 -0
  14. package/dist/esm/index.js.map +1 -0
  15. package/dist/esm/web.d.ts +37 -0
  16. package/dist/esm/web.js +42 -0
  17. package/dist/esm/web.js.map +1 -0
  18. package/dist/plugin.cjs.js +58 -0
  19. package/dist/plugin.cjs.js.map +1 -0
  20. package/dist/plugin.js +61 -0
  21. package/dist/plugin.js.map +1 -0
  22. package/ios/Plugin/Info.plist +24 -0
  23. package/ios/Plugin/Plugin-Bridging-Header.h +35 -0
  24. package/ios/Plugin/iHealthSDKHeaders/ABI.h +82 -0
  25. package/ios/Plugin/iHealthSDKHeaders/ABIController.h +28 -0
  26. package/ios/Plugin/iHealthSDKHeaders/ABPM.h +144 -0
  27. package/ios/Plugin/iHealthSDKHeaders/ABPMController.h +25 -0
  28. package/ios/Plugin/iHealthSDKHeaders/AM3.h +188 -0
  29. package/ios/Plugin/iHealthSDKHeaders/AM3Controller.h +29 -0
  30. package/ios/Plugin/iHealthSDKHeaders/AM3SController_V2.h +29 -0
  31. package/ios/Plugin/iHealthSDKHeaders/AM3S_V2.h +227 -0
  32. package/ios/Plugin/iHealthSDKHeaders/AM4.h +223 -0
  33. package/ios/Plugin/iHealthSDKHeaders/AM4Controller.h +31 -0
  34. package/ios/Plugin/iHealthSDKHeaders/AM5.h +335 -0
  35. package/ios/Plugin/iHealthSDKHeaders/AM5Controller.h +30 -0
  36. package/ios/Plugin/iHealthSDKHeaders/AM5Header.h +20 -0
  37. package/ios/Plugin/iHealthSDKHeaders/AMHeader.h +27 -0
  38. package/ios/Plugin/iHealthSDKHeaders/AMMacroFile.h +1171 -0
  39. package/ios/Plugin/iHealthSDKHeaders/BG1.h +53 -0
  40. package/ios/Plugin/iHealthSDKHeaders/BG1Controller.h +46 -0
  41. package/ios/Plugin/iHealthSDKHeaders/BG1S.h +64 -0
  42. package/ios/Plugin/iHealthSDKHeaders/BG1SController.h +25 -0
  43. package/ios/Plugin/iHealthSDKHeaders/BG3.h +83 -0
  44. package/ios/Plugin/iHealthSDKHeaders/BG3Controller.h +28 -0
  45. package/ios/Plugin/iHealthSDKHeaders/BG5.h +158 -0
  46. package/ios/Plugin/iHealthSDKHeaders/BG5Controller.h +28 -0
  47. package/ios/Plugin/iHealthSDKHeaders/BG5S.h +294 -0
  48. package/ios/Plugin/iHealthSDKHeaders/BG5SController.h +29 -0
  49. package/ios/Plugin/iHealthSDKHeaders/BGController.h +32 -0
  50. package/ios/Plugin/iHealthSDKHeaders/BGDevice.h +42 -0
  51. package/ios/Plugin/iHealthSDKHeaders/BGHeader.h +23 -0
  52. package/ios/Plugin/iHealthSDKHeaders/BGMacroFile.h +507 -0
  53. package/ios/Plugin/iHealthSDKHeaders/BP3.h +77 -0
  54. package/ios/Plugin/iHealthSDKHeaders/BP3Controller.h +27 -0
  55. package/ios/Plugin/iHealthSDKHeaders/BP3L.h +58 -0
  56. package/ios/Plugin/iHealthSDKHeaders/BP3LController.h +30 -0
  57. package/ios/Plugin/iHealthSDKHeaders/BP5.h +32 -0
  58. package/ios/Plugin/iHealthSDKHeaders/BP5C.h +131 -0
  59. package/ios/Plugin/iHealthSDKHeaders/BP5CController.h +25 -0
  60. package/ios/Plugin/iHealthSDKHeaders/BP5Controller.h +25 -0
  61. package/ios/Plugin/iHealthSDKHeaders/BP5S.h +97 -0
  62. package/ios/Plugin/iHealthSDKHeaders/BP5SController.h +27 -0
  63. package/ios/Plugin/iHealthSDKHeaders/BP5SRW.h +101 -0
  64. package/ios/Plugin/iHealthSDKHeaders/BP5SRWController.h +26 -0
  65. package/ios/Plugin/iHealthSDKHeaders/BP7.h +141 -0
  66. package/ios/Plugin/iHealthSDKHeaders/BP7Controller.h +25 -0
  67. package/ios/Plugin/iHealthSDKHeaders/BP7S.h +106 -0
  68. package/ios/Plugin/iHealthSDKHeaders/BP7SController.h +32 -0
  69. package/ios/Plugin/iHealthSDKHeaders/BPAV10Device.h +15 -0
  70. package/ios/Plugin/iHealthSDKHeaders/BPBTLEDevice.h +17 -0
  71. package/ios/Plugin/iHealthSDKHeaders/BPBV10Device.h +20 -0
  72. package/ios/Plugin/iHealthSDKHeaders/BPContinua.h +56 -0
  73. package/ios/Plugin/iHealthSDKHeaders/BPContinuaController.h +30 -0
  74. package/ios/Plugin/iHealthSDKHeaders/BPController.h +40 -0
  75. package/ios/Plugin/iHealthSDKHeaders/BPDevice.h +131 -0
  76. package/ios/Plugin/iHealthSDKHeaders/BPHeader.h +54 -0
  77. package/ios/Plugin/iHealthSDKHeaders/BPLoopMeasureSettingModel.h +120 -0
  78. package/ios/Plugin/iHealthSDKHeaders/BPM1AE.h +80 -0
  79. package/ios/Plugin/iHealthSDKHeaders/BPMacroFile.h +247 -0
  80. package/ios/Plugin/iHealthSDKHeaders/BPV24Device.h +16 -0
  81. package/ios/Plugin/iHealthSDKHeaders/BPV25Device.h +17 -0
  82. package/ios/Plugin/iHealthSDKHeaders/ConnectDeviceController.h +27 -0
  83. package/ios/Plugin/iHealthSDKHeaders/DFUController.h +160 -0
  84. package/ios/Plugin/iHealthSDKHeaders/DFUDeviceFirmwareInfo.h +56 -0
  85. package/ios/Plugin/iHealthSDKHeaders/DFUHeader.h +19 -0
  86. package/ios/Plugin/iHealthSDKHeaders/DFUMacro.h +264 -0
  87. package/ios/Plugin/iHealthSDKHeaders/DFUServerFirmwareInfo.h +48 -0
  88. package/ios/Plugin/iHealthSDKHeaders/ECG3.h +94 -0
  89. package/ios/Plugin/iHealthSDKHeaders/ECG3Controller.h +30 -0
  90. package/ios/Plugin/iHealthSDKHeaders/ECG3USB.h +145 -0
  91. package/ios/Plugin/iHealthSDKHeaders/ECG3USBController.h +31 -0
  92. package/ios/Plugin/iHealthSDKHeaders/ECGHeader.h +20 -0
  93. package/ios/Plugin/iHealthSDKHeaders/ECGMacroFile.h +84 -0
  94. package/ios/Plugin/iHealthSDKHeaders/HFSmartLink.h +88 -0
  95. package/ios/Plugin/iHealthSDKHeaders/HFSmartLinkDeviceInfo.h +14 -0
  96. package/ios/Plugin/iHealthSDKHeaders/HS2.h +64 -0
  97. package/ios/Plugin/iHealthSDKHeaders/HS2Controller.h +25 -0
  98. package/ios/Plugin/iHealthSDKHeaders/HS2S.h +399 -0
  99. package/ios/Plugin/iHealthSDKHeaders/HS2SController.h +27 -0
  100. package/ios/Plugin/iHealthSDKHeaders/HS3.h +63 -0
  101. package/ios/Plugin/iHealthSDKHeaders/HS3Controller.h +32 -0
  102. package/ios/Plugin/iHealthSDKHeaders/HS4.h +64 -0
  103. package/ios/Plugin/iHealthSDKHeaders/HS4Controller.h +26 -0
  104. package/ios/Plugin/iHealthSDKHeaders/HS5.h +141 -0
  105. package/ios/Plugin/iHealthSDKHeaders/HS5Controller.h +38 -0
  106. package/ios/Plugin/iHealthSDKHeaders/HSHeader.h +25 -0
  107. package/ios/Plugin/iHealthSDKHeaders/HSMacroFile.h +709 -0
  108. package/ios/Plugin/iHealthSDKHeaders/HealthHeader.h +67 -0
  109. package/ios/Plugin/iHealthSDKHeaders/HealthUser.h +126 -0
  110. package/ios/Plugin/iHealthSDKHeaders/IDOBindEnum.h +49 -0
  111. package/ios/Plugin/iHealthSDKHeaders/IDOBlueDataResponse.h +66 -0
  112. package/ios/Plugin/iHealthSDKHeaders/IDOBlueEnum.h +213 -0
  113. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothBaseModel.h +112 -0
  114. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothEngine.h +283 -0
  115. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothManager.h +166 -0
  116. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothServices.h +75 -0
  117. package/ios/Plugin/iHealthSDKHeaders/IDOCalculateBluetoothModel.h +263 -0
  118. package/ios/Plugin/iHealthSDKHeaders/IDOCommonMacro.h +89 -0
  119. package/ios/Plugin/iHealthSDKHeaders/IDODataExchangeModel.h +128 -0
  120. package/ios/Plugin/iHealthSDKHeaders/IDODataMigrationManager.h +79 -0
  121. package/ios/Plugin/iHealthSDKHeaders/IDOErrorCodeToStr.h +19 -0
  122. package/ios/Plugin/iHealthSDKHeaders/IDOFoundationCommand.h +1178 -0
  123. package/ios/Plugin/iHealthSDKHeaders/IDOGetInfoBluetoothModel.h +1924 -0
  124. package/ios/Plugin/iHealthSDKHeaders/IDOLogEnum.h +165 -0
  125. package/ios/Plugin/iHealthSDKHeaders/IDOPeripheralModel.h +59 -0
  126. package/ios/Plugin/iHealthSDKHeaders/IDORecordDeviceLog.h +56 -0
  127. package/ios/Plugin/iHealthSDKHeaders/IDOSetInfoBluetoothModel.h +1760 -0
  128. package/ios/Plugin/iHealthSDKHeaders/IDOSyncActivityDataModel.h +207 -0
  129. package/ios/Plugin/iHealthSDKHeaders/IDOSyncBpDataModel.h +191 -0
  130. package/ios/Plugin/iHealthSDKHeaders/IDOSyncEnum.h +316 -0
  131. package/ios/Plugin/iHealthSDKHeaders/IDOSyncGpsDataModel.h +133 -0
  132. package/ios/Plugin/iHealthSDKHeaders/IDOSyncHeartRateDataModel.h +442 -0
  133. package/ios/Plugin/iHealthSDKHeaders/IDOSyncManager.h +161 -0
  134. package/ios/Plugin/iHealthSDKHeaders/IDOSyncPressureDataModel.h +158 -0
  135. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSleepDataModel.h +224 -0
  136. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSpo2DataModel.h +175 -0
  137. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSportDataModel.h +221 -0
  138. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSwimDataModel.h +188 -0
  139. package/ios/Plugin/iHealthSDKHeaders/IDOTranEnum.h +93 -0
  140. package/ios/Plugin/iHealthSDKHeaders/IDOTransferFileManager.h +116 -0
  141. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialInfoModel.h +95 -0
  142. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialManager.h +75 -0
  143. package/ios/Plugin/iHealthSDKHeaders/IDOWeightBluetoothModel.h +124 -0
  144. package/ios/Plugin/iHealthSDKHeaders/IHSDKCloudUser.h +104 -0
  145. package/ios/Plugin/iHealthSDKHeaders/KN550BT.h +115 -0
  146. package/ios/Plugin/iHealthSDKHeaders/KN550BTController.h +32 -0
  147. package/ios/Plugin/iHealthSDKHeaders/ManageDeviceController.h +34 -0
  148. package/ios/Plugin/iHealthSDKHeaders/NT13B.h +33 -0
  149. package/ios/Plugin/iHealthSDKHeaders/NT13BController.h +28 -0
  150. package/ios/Plugin/iHealthSDKHeaders/NT13BHeader.h +16 -0
  151. package/ios/Plugin/iHealthSDKHeaders/NT13BMacroFile.h +34 -0
  152. package/ios/Plugin/iHealthSDKHeaders/PO1.h +82 -0
  153. package/ios/Plugin/iHealthSDKHeaders/PO1Controller.h +29 -0
  154. package/ios/Plugin/iHealthSDKHeaders/PO3.h +96 -0
  155. package/ios/Plugin/iHealthSDKHeaders/PO3Controller.h +29 -0
  156. package/ios/Plugin/iHealthSDKHeaders/POHeader.h +20 -0
  157. package/ios/Plugin/iHealthSDKHeaders/POMacroFile.h +142 -0
  158. package/ios/Plugin/iHealthSDKHeaders/PT3SBT.h +167 -0
  159. package/ios/Plugin/iHealthSDKHeaders/PT3SBTController.h +27 -0
  160. package/ios/Plugin/iHealthSDKHeaders/PT3SBTMacroFile.h +92 -0
  161. package/ios/Plugin/iHealthSDKHeaders/SDKFlowUpdateDevice.h +196 -0
  162. package/ios/Plugin/iHealthSDKHeaders/SDKInfo.h +30 -0
  163. package/ios/Plugin/iHealthSDKHeaders/SDKUpdateDevice.h +235 -0
  164. package/ios/Plugin/iHealthSDKHeaders/ScanDeviceController.h +47 -0
  165. package/ios/Plugin/iHealthSDKHeaders/THV3.h +104 -0
  166. package/ios/Plugin/iHealthSDKHeaders/THV3Controller.h +30 -0
  167. package/ios/Plugin/iHealthSDKHeaders/THV3Macro.h +17 -0
  168. package/ios/Plugin/iHealthSDKHeaders/TS28B.h +26 -0
  169. package/ios/Plugin/iHealthSDKHeaders/TS28BController.h +142 -0
  170. package/ios/Plugin/iHealthSDKHeaders/TS28BHeader.h +15 -0
  171. package/ios/Plugin/iHealthSDKHeaders/iHealthHS6.h +174 -0
  172. package/ios/Plugin/ihealth.swift +8 -0
  173. package/ios/Plugin/ihealthPlugin.h +10 -0
  174. package/ios/Plugin/ihealthPlugin.m +16 -0
  175. package/ios/Plugin/ihealthPlugin.swift +1502 -0
  176. package/ios/Plugin/libiHealthSDK2.7.8.a +0 -0
  177. package/ios/Plugin/test.m +9 -0
  178. package/package.json +78 -0
@@ -0,0 +1,133 @@
1
+ //
2
+ // IDOSyncGpsDataModel.h
3
+ // IDOBluetoothInternal
4
+ //
5
+ // Created by 何东阳 on 2019/8/6.
6
+ // Copyright © 2019 何东阳. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
11
+ #elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
12
+ #else
13
+ #import "IDOBluetoothBaseModel.h"
14
+ #endif
15
+
16
+ @interface IDOSyncGpsDataItemInfoBluetoothModel : IDOBluetoothBaseModel
17
+
18
+ /**
19
+ 序列号 | Serial number
20
+ */
21
+ @property (nonatomic,assign) NSInteger serialNumber;
22
+
23
+ /**
24
+ 经度 | Longitude
25
+ */
26
+ @property (nonatomic,copy) NSString * latitudeStr;
27
+
28
+ /**
29
+ 纬度 | Latitude
30
+ */
31
+ @property (nonatomic,copy) NSString * longitudeStr;
32
+
33
+ /**
34
+ * 发起运动时间 时间戳 精确到秒 time interval since 1970 (如:1444361933)
35
+ * Initiate exercise time Timestamp time interval since 1970 (eg 14442361933)
36
+ */
37
+ @property (nonatomic,copy) NSString * timeStr;
38
+
39
+ /**
40
+ 日期 精确到日期 date interval since 1970 (如:1444361933) | date interval since 1970 (eg: 14443361933)
41
+ */
42
+ @property (nonatomic,copy) NSString * dateStr;
43
+
44
+ @end
45
+
46
+
47
+ @interface IDOSyncGpsDataInfoBluetoothModel : IDOBluetoothBaseModel
48
+
49
+ /**
50
+ 年份 | Year
51
+ */
52
+ @property (nonatomic,assign) NSInteger year;
53
+
54
+ /**
55
+ 月份 | Month
56
+ */
57
+ @property (nonatomic,assign) NSInteger month;
58
+
59
+ /**
60
+ 日期 | Date
61
+ */
62
+ @property (nonatomic,assign) NSInteger day;
63
+
64
+ /**
65
+ 时 | hour
66
+ */
67
+ @property (nonatomic,assign) NSInteger hour;
68
+
69
+ /**
70
+ 分 | minutes
71
+ */
72
+ @property (nonatomic,assign) NSInteger minute;
73
+
74
+ /**
75
+ 秒 | seconds
76
+ */
77
+ @property (nonatomic,assign) NSInteger second;
78
+
79
+ /**
80
+ * 发起运动时间 时间戳 精确到秒 time interval since 1970 (如:1444361933)
81
+ * Initiate exercise time Timestamp time interval since 1970 (eg 14442361933)
82
+ */
83
+ @property (nonatomic,copy) NSString * timeStr;
84
+
85
+ /**
86
+ 日期 精确到日期 date interval since 1970 (如:1444361933) | date interval since 1970 (eg: 14443361933)
87
+ */
88
+ @property (nonatomic,copy) NSString * dateStr;
89
+
90
+ /**
91
+ gps数据包数量 | gps packet number
92
+ */
93
+ @property (nonatomic,assign) NSInteger itemsCount;
94
+
95
+ /**
96
+ 间隔时长 (单位:秒)| Interval length (unit:second)
97
+ */
98
+ @property (nonatomic,assign) int interval;
99
+
100
+ /**
101
+ 运动发起端 (1 : 手环发起 0 : app发起) | Sports Initiator (1 : Bracelet Initiation 0 : app initiated)
102
+ */
103
+ @property (nonatomic,assign) NSInteger startFrom;
104
+
105
+ /**
106
+ * GPS 坐标点集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性
107
+ * GPS coordinate point set Only defined query methods can be converted into model collections. Custom query methods cannot be directly
108
+ * converted into model collections. You need to query itemModel to assign current attributes.
109
+ */
110
+ @property (nonatomic,copy) NSArray <IDOSyncGpsDataItemInfoBluetoothModel *>* gpsItems;
111
+
112
+ @end
113
+
114
+ @interface IDOSyncGpsDataModel : NSObject
115
+ /**
116
+ * @brief 根据时间戳查询某个活动的GPS信息 | Querying the GPS information of an activity based on the timestamp
117
+ * @param timeStr 时间戳 time interval since 1970 (如:1444361933) | Timestamp time interval since 1970 (eg: 14443361933)
118
+ * @param macAddr mac 地址 | mac address
119
+ * @return gps信息数据 坐标item对象集合 | gps information data coordinate item object collection
120
+ */
121
+ + (__kindof IDOSyncGpsDataInfoBluetoothModel *)queryOneActivityCoordinatesWithTimeStr:(NSString *)timeStr
122
+ macAddr:(NSString *)macAddr;
123
+
124
+ /**
125
+ * @brief 根据时间戳查询某个活动是否存在轨迹 | Query whether an activity has a track based on a timestamp
126
+ * @param timeStr 时间戳 time interval since 1970 (如:1444361933) | Timestamp time interval since 1970 (eg: 14443361933)
127
+ * @param macAddr mac 地址 | mac address
128
+ * @return 是否存在轨迹 yes or no | Is there a track?
129
+ */
130
+ + (BOOL)queryActivityHasCoordinatesWithTimeStr:(NSString *)timeStr
131
+ macAddr:(NSString *)macAddr;
132
+ @end
133
+
@@ -0,0 +1,442 @@
1
+ //
2
+ // IDOSyncHeartRateDataModel.h
3
+ // IDOBluetoothInternal
4
+ //
5
+ // Created by 何东阳 on 2019/8/6.
6
+ // Copyright © 2019 何东阳. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
11
+ #elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
12
+ #else
13
+ #import "IDOBluetoothBaseModel.h"
14
+ #endif
15
+
16
+ @interface IDOSyncHrDataItemInfoBluetoothModel : IDOBluetoothBaseModel
17
+
18
+ /**
19
+ 子时间偏移量 (单位:分钟) | Total time offset (unit: minute)
20
+ */
21
+ @property (nonatomic,assign) NSInteger offset;
22
+
23
+ /**
24
+ 心率值 | Heart rate value
25
+ */
26
+ @property (nonatomic,assign) NSInteger data;
27
+
28
+ /**
29
+ 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
30
+ */
31
+ @property (nonatomic,copy) NSString * dateStr;
32
+
33
+ /**
34
+ 序列号 | Serial number
35
+ */
36
+ @property (nonatomic,assign) NSInteger serialNumber;
37
+
38
+ @end
39
+
40
+ @interface IDOSyncHrDataInfoBluetoothModel : IDOBluetoothBaseModel
41
+
42
+ /**
43
+ 心率数据包数量 | Heart Rate Packets
44
+ */
45
+ @property (nonatomic,assign) NSInteger itemsCount;
46
+
47
+ /**
48
+ 总时间偏移量 (单位:分钟) | Total time offset (unit: minute)
49
+ */
50
+ @property (nonatomic,assign) NSUInteger minuteOffset;
51
+
52
+ /**
53
+ 静态心率 | Static heart rate
54
+ */
55
+ @property (nonatomic,assign) NSUInteger silentHeartRate;
56
+
57
+ /**
58
+ 燃烧脂肪阀值 | Burning fat threshold
59
+ */
60
+ @property (nonatomic,assign) NSUInteger burnFatThreshold;
61
+
62
+ /**
63
+ 肌肉锻炼阀值 | Muscle exercise threshold
64
+ */
65
+ @property (nonatomic,assign) NSUInteger aerobicThreshold;
66
+
67
+ /**
68
+ 极限阀值 | Limit threshold
69
+ */
70
+ @property (nonatomic,assign) NSUInteger limitThreshold;
71
+
72
+ /**
73
+ 脂肪燃烧时长 (单位 :分钟) | Fat burning time (unit: minute)
74
+ */
75
+ @property (nonatomic,assign) NSUInteger burnFatMins;
76
+
77
+ /**
78
+ 肌肉锻炼时长 (单位 :分钟) | Muscle training time (unit: minute)
79
+ */
80
+ @property (nonatomic,assign) NSUInteger aerobicMins;
81
+
82
+ /**
83
+ 极限运动时长 (单位 :分钟) | Extreme Sports Duration (Unit: Minutes)
84
+ */
85
+ @property (nonatomic,assign) NSUInteger limitMins;
86
+
87
+ /**
88
+ 用户最大心率 | User maximum heart rate
89
+ */
90
+ @property (nonatomic,assign) NSUInteger userMaxHr;
91
+
92
+ /**
93
+ 热身运动阈值 | warm up threshold
94
+ */
95
+ @property (nonatomic,assign) NSUInteger warmUpThreshold;
96
+
97
+ /**
98
+ 热身运动时间 (单位 :分钟) | warm up mins
99
+ */
100
+ @property (nonatomic,assign) NSUInteger warmUpMins;
101
+
102
+ /**
103
+ 无氧运动阈值 | anaerobic threshold
104
+ */
105
+ @property (nonatomic,assign) NSUInteger anaerobicThreshold;
106
+
107
+ /**
108
+ 无氧运动时间 (单位 :分钟) | anaerobic mins
109
+ */
110
+ @property (nonatomic,assign) NSUInteger anaerobicMins;
111
+
112
+ /**
113
+ 年份 | Year
114
+ */
115
+ @property (nonatomic,assign) NSInteger year;
116
+
117
+ /**
118
+ 月份 | Month
119
+ */
120
+ @property (nonatomic,assign) NSInteger month;
121
+
122
+ /**
123
+ 日期 | Date
124
+ */
125
+ @property (nonatomic,assign) NSInteger day;
126
+
127
+ /**
128
+ * 心率集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性
129
+ * Heart rate collection Only defined query methods can be converted into model collections. Custom query methods cannot be directly
130
+ * converted into model collections. You need to query itemModel to assign current attributes.
131
+ */
132
+ @property (nonatomic,copy) NSArray <IDOSyncHrDataItemInfoBluetoothModel *>* heartRates;
133
+
134
+ /**
135
+ 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
136
+ */
137
+ @property (nonatomic,copy) NSString * dateStr;
138
+
139
+ @end
140
+
141
+ @interface IDOSyncSecHrDataItemInfoBluetoothModel : IDOBluetoothBaseModel
142
+ /**
143
+ 子时间偏移量 (单位:秒钟) | Total time offset (unit: second)
144
+ */
145
+ @property (nonatomic,assign) NSInteger offset;
146
+
147
+ /**
148
+ 心率值 | Heart rate value
149
+ */
150
+ @property (nonatomic,assign) NSInteger hrValue;
151
+
152
+ /**
153
+ 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
154
+ */
155
+ @property (nonatomic,copy) NSString * dateStr;
156
+
157
+ /**
158
+ 序列号 | Serial number
159
+ */
160
+ @property (nonatomic,assign) NSInteger serialNumber;
161
+
162
+ @end
163
+
164
+ @interface IDOSyncSecHrDataInfoBluetoothModel : IDOBluetoothBaseModel
165
+ /**
166
+ 心率数据包数量 | Heart Rate Packets
167
+ */
168
+ @property (nonatomic,assign) NSInteger itemsCount;
169
+
170
+ /**
171
+ 总时间偏移量 (单位:秒钟) | Total time offset (unit: second)
172
+ */
173
+ @property (nonatomic,assign) NSUInteger secondOffset;
174
+
175
+ /**
176
+ 静态心率 | Static heart rate
177
+ */
178
+ @property (nonatomic,assign) NSUInteger silentHeartRate;
179
+
180
+ /**
181
+ 燃烧脂肪阀值 | Burning fat threshold
182
+ */
183
+ @property (nonatomic,assign) NSUInteger burnFatThreshold;
184
+
185
+ /**
186
+ 肌肉锻炼阀值 | Muscle exercise threshold
187
+ */
188
+ @property (nonatomic,assign) NSUInteger aerobicThreshold;
189
+
190
+ /**
191
+ 极限阀值 | Limit threshold
192
+ */
193
+ @property (nonatomic,assign) NSUInteger limitThreshold;
194
+
195
+ /**
196
+ 脂肪燃烧时长 (单位 :分钟) | Fat burning time (unit: minute)
197
+ */
198
+ @property (nonatomic,assign) NSUInteger burnFatMins;
199
+
200
+ /**
201
+ 肌肉锻炼时长 (单位 :分钟) | Muscle training time (unit: minute)
202
+ */
203
+ @property (nonatomic,assign) NSUInteger aerobicMins;
204
+
205
+ /**
206
+ 极限运动时长 (单位 :分钟) | Extreme Sports Duration (Unit: Minutes)
207
+ */
208
+ @property (nonatomic,assign) NSUInteger limitMins;
209
+
210
+ /**
211
+ 用户最大心率 | User maximum heart rate
212
+ */
213
+ @property (nonatomic,assign) NSUInteger userMaxHr;
214
+
215
+ /**
216
+ 热身运动阈值 | warm up threshold
217
+ */
218
+ @property (nonatomic,assign) NSUInteger warmUpThreshold;
219
+
220
+ /**
221
+ 热身运动时间 (单位 :分钟) | warm up mins
222
+ */
223
+ @property (nonatomic,assign) NSUInteger warmUpMins;
224
+
225
+ /**
226
+ 无氧运动阈值 | anaerobic threshold
227
+ */
228
+ @property (nonatomic,assign) NSUInteger anaerobicThreshold;
229
+
230
+ /**
231
+ 无氧运动阈值 (单位 :分钟) | anaerobic mins
232
+ */
233
+ @property (nonatomic,assign) NSUInteger anaerobicMins;
234
+
235
+ /**
236
+ 年份 | Year
237
+ */
238
+ @property (nonatomic,assign) NSInteger year;
239
+
240
+ /**
241
+ 月份 | Month
242
+ */
243
+ @property (nonatomic,assign) NSInteger month;
244
+
245
+ /**
246
+ 日期 | Date
247
+ */
248
+ @property (nonatomic,assign) NSInteger day;
249
+
250
+ /**
251
+ * 心率集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性
252
+ * Heart rate collection Only defined query methods can be converted into model collections. Custom query methods cannot be directly
253
+ * converted into model collections. You need to query itemModel to assign current attributes.
254
+ */
255
+ @property (nonatomic,copy) NSArray <IDOSyncSecHrDataItemInfoBluetoothModel *>* heartRates;
256
+
257
+ /**
258
+ * 5分钟间隔心率集合和总心率时长 | Heart rate set at 5-minute intervals and total heart rate duration
259
+ * @{@"total_offset":@(0),@"heart_rates":@[@{@"offset":@(0),@"value":@(0)}...]};
260
+ */
261
+ @property (nonatomic,copy) NSDictionary * minutesHrDic;
262
+
263
+ /**
264
+ 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
265
+ */
266
+ @property (nonatomic,copy) NSString * dateStr;
267
+
268
+ @end
269
+
270
+
271
+ @interface IDOSyncHeartRateDataModel : NSObject
272
+
273
+ #pragma mark ======================== offset minunte ===============================
274
+ /**
275
+ * @brief 查询当前设备某年12个月所有数据 (如果查询当月无数据,会创建空的数据对象,大于当月的数据不累加)
276
+ * Query all data of the current device for 12 months in a certain year (If there is no data in the query month, an empty data object will be created,
277
+ * and the data larger than the current month will not be accumulated)
278
+ * @param year 年 (如 : 2018) | Year (eg: 2018)
279
+ * @param macAddr mac 地址 | mac address
280
+ * @param isQuery 是否查询items | is query items
281
+ * @return 一年12个月的心率数据集合,其中IDOSyncHrDataInfoBluetoothModel对象是一天总心率数据模型
282
+ * Heart rate data collection for 12 months a year, where the IDOSyncHrDataInfoBluetoothModel object is the total heart rate data model for the day
283
+ */
284
+ + (NSArray <NSArray<__kindof IDOSyncHrDataInfoBluetoothModel *>*> *)queryOneYearHearRatesWithYear:(NSInteger)year
285
+ macAddr:(NSString *)macAddr
286
+ isQueryItems:(BOOL)isQuery;
287
+
288
+ /**
289
+ * @brief 查询当前设备某月份的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
290
+ * Query all data of the current device for a certain month (If there is no data on the query day, an empty data object will be created,
291
+ * which is larger than the data of the day)
292
+ * @param year 年 (如 : 2018) | Year (eg: 2018)
293
+ * @param month 月 (如 : 9) | Month (eg: 9)
294
+ * @param macAddr mac 地址 | mac address
295
+ * @param dates 当前查询月份的所有日期集合的指针 (格式 :[10/01...10/31])
296
+ * Pointer to all date collections for the current query month (format: [10/01...10/31])
297
+ * @param isQuery 是否查询items | is query items
298
+ * @return 一个月的心率数据集合,其中IDOSyncHrDataInfoBluetoothModel对象是一天总心率数据模型
299
+ * A one-month heart rate data collection, where the IDOSyncHrDataInfoBluetoothModel object is the total heart rate data model for the day
300
+ */
301
+ + (NSArray <__kindof IDOSyncHrDataInfoBluetoothModel *>*)queryOneMonthHearRatesWithYear:(NSInteger)year
302
+ month:(NSInteger)month
303
+ macAddr:(NSString *)macAddr
304
+ datesOfMonth:(NSArray <NSString *>**)dates
305
+ isQueryItems:(BOOL)isQuery;
306
+
307
+ /**
308
+ * @brief 查询当前设备某周的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
309
+ * Query all data of the current device for a certain week (If there is no data on the day of the query, an empty data object will be created,
310
+ * and the data larger than the current day will not be accumulated)
311
+ * @param weekIndex 周的查询索引 (0 : 当周, 1 : 上一周, 2 : 上两周 ...) | Week's query index (0: week, 1 : last week, 2 : last two weeks...)
312
+ * @param weekStartDay 星期的开始日 (0 : 星期日, 1 : 星期一, 2 : 星期二 ...) | Start of the week (0: Sunday, 1 : Monday, 2 : Tuesday ...)
313
+ * @param macAddr mac 地址 | mac address
314
+ * @param dates 当前查询周的所有日期集合的指针 (格式 :[10/01...10/07])
315
+ * Pointer to all date collections for the current query week (format: [10/01...10/07])
316
+ * @param isQuery 是否查询items | is query items
317
+ * @return 一周的心率数据集合,其中IDOSyncHrDataInfoBluetoothModel对象是一天总心率数据模型
318
+ * A week's heart rate data collection, where the IDOSyncHrDataInfoBluetoothModel object is the total heart rate data model for the day
319
+ */
320
+ + (NSArray <__kindof IDOSyncHrDataInfoBluetoothModel *>*)queryOneWeekHearRatesWithWeekIndex:(NSInteger)weekIndex
321
+ weekStartDay:(NSInteger)weekStartDay
322
+ macAddr:(NSString *)macAddr
323
+ datesOfWeek:(NSArray <NSString *>**)dates
324
+ isQueryItems:(BOOL)isQuery;
325
+
326
+ /**
327
+ * @brief 查询当前设备某天心率数据并有详情数据 | Query current heart rate data of the current device and have detailed data
328
+ * @param macAddr mac 地址 | mac address
329
+ * @param year 年份 | year
330
+ * @param month 月份 | month
331
+ * @param day 日期 | day
332
+ * @return 一天心率数据的集合和详情数据集合 | Collection of day heart rate data and details data
333
+ */
334
+ + (NSArray<__kindof IDOSyncHrDataInfoBluetoothModel *> *)queryOneDayHearRatesDetailWithMac:(NSString *)macAddr
335
+ year:(NSInteger)year
336
+ month:(NSInteger)month
337
+ day:(NSInteger)day;
338
+
339
+ /**
340
+ * @brief 查询所有心率数据 心率包个数大于0 | Query all heart rate data The number of heart rate packets is greater than 0
341
+ * @param macAddr mac 地址 | mac address
342
+ * @return 所有心率数据的集合 | Collection of all heart rate data and details data
343
+ */
344
+ + (NSArray <__kindof IDOSyncHrDataInfoBluetoothModel *>*)queryAllHearRatesWithMac:(NSString *)macAddr;
345
+
346
+
347
+ /**
348
+ * @brief 查询所有心率数据 心率包个数大于0 只包含静心心率和日期时间戳
349
+ * Query all heart rate data The number of heart rate packets is greater than 0
350
+ * Contains only meditation heart rate and date and time stamp
351
+ * @param macAddr mac 地址 | mac address
352
+ * @return 所有心率数据的集合 | Collection of all heart rate data
353
+ */
354
+ + (NSArray <__kindof IDOSyncHrDataInfoBluetoothModel *>*)queryAllContractedHearRatesWithMac:(NSString *)macAddr;
355
+
356
+ #pragma mark ======================== offset second ===============================
357
+
358
+ /**
359
+ * @brief 查询当前设备某年12个月所有数据 (如果查询当月无数据,会创建空的数据对象,大于当月的数据不累加)
360
+ * Query all data of the current device for 12 months in a certain year (If there is no data in the query month, an empty data object will be created,
361
+ * and the data larger than the current month will not be accumulated)
362
+ * @param year 年 (如 : 2018) | Year (eg: 2018)
363
+ * @param macAddr mac 地址 | mac address
364
+ * @param isQuery 是否查询items | is query items
365
+ * @return 一年12个月的秒钟心率数据集合,其中IDOSyncSecHrDataInfoBluetoothModel对象是一天总心率数据模型
366
+ * second heart rate data collection for 12 months a year, where the IDOSyncSecHrDataInfoBluetoothModel object is the total heart rate data model for the day
367
+ */
368
+ + (NSArray <NSArray<__kindof IDOSyncSecHrDataInfoBluetoothModel *>*> *)queryOneYearSecHearRatesWithYear:(NSInteger)year
369
+ macAddr:(NSString *)macAddr
370
+ isQueryItems:(BOOL)isQuery;
371
+
372
+ /**
373
+ * @brief 查询当前设备某月份的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
374
+ * Query all data of the current device for a certain month (If there is no data on the query day, an empty data object will be created,
375
+ * which is larger than the data of the day)
376
+ * @param year 年 (如 : 2018) | Year (eg: 2018)
377
+ * @param month 月 (如 : 9) | Month (eg: 9)
378
+ * @param macAddr mac 地址 | mac address
379
+ * @param dates 当前查询月份的所有日期集合的指针 (格式 :[10/01...10/31])
380
+ * Pointer to all date collections for the current query month (format: [10/01...10/31])
381
+ * @param isQuery 是否查询items | is query items
382
+ * @return 一个月的秒钟心率数据集合,其中IDOSyncSecHrDataInfoBluetoothModel对象是一天总心率数据模型
383
+ * one-month second heart rate data collection, where the IDOSyncSecHrDataInfoBluetoothModel object is the total heart rate data model for the day
384
+ */
385
+ + (NSArray <__kindof IDOSyncSecHrDataInfoBluetoothModel *>*)queryOneMonthSecHearRatesWithYear:(NSInteger)year
386
+ month:(NSInteger)month
387
+ macAddr:(NSString *)macAddr
388
+ datesOfMonth:(NSArray <NSString *>**)dates
389
+ isQueryItems:(BOOL)isQuery;
390
+
391
+ /**
392
+ * @brief 查询当前设备某周的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
393
+ * Query all data of the current device for a certain week (If there is no data on the day of the query, an empty data object will be created,
394
+ * and the data larger than the current day will not be accumulated)
395
+ * @param weekIndex 周的查询索引 (0 : 当周, 1 : 上一周, 2 : 上两周 ...) | Week's query index (0: week, 1 : last week, 2 : last two weeks...)
396
+ * @param weekStartDay 星期的开始日 (0 : 星期日, 1 : 星期一, 2 : 星期二 ...) | Start of the week (0: Sunday, 1 : Monday, 2 : Tuesday ...)
397
+ * @param macAddr mac 地址 | mac address
398
+ * @param dates 当前查询周的所有日期集合的指针 (格式 :[10/01...10/07])
399
+ * Pointer to all date collections for the current query week (format: [10/01...10/07])
400
+ * @param isQuery 是否查询items | is query items
401
+ * @return 一周的秒钟心率数据集合,其中IDOSyncSecHrDataInfoBluetoothModel对象是一天总心率数据模型
402
+ * one week second heart rate data collection, where the IDOSyncSecHrDataInfoBluetoothModel object is the total heart rate data model for the day
403
+ */
404
+ + (NSArray <__kindof IDOSyncSecHrDataInfoBluetoothModel *>*)queryOneWeekSecHearRatesWithWeekIndex:(NSInteger)weekIndex
405
+ weekStartDay:(NSInteger)weekStartDay
406
+ macAddr:(NSString *)macAddr
407
+ datesOfWeek:(NSArray <NSString *>**)dates
408
+ isQueryItems:(BOOL)isQuery;
409
+
410
+ /**
411
+ * @brief 查询当前设备某天秒钟心率数据并有详情数据 | Query current day second heart rate data of the current device and have detailed data
412
+ * @param macAddr mac 地址 | mac address
413
+ * @param year 年份 | year
414
+ * @param month 月份 | month
415
+ * @param day 日期 | day
416
+ * @param isQuery 是否查询items | is query items
417
+ * @return 一天秒钟心率数据的集合和详情数据集合 | Collection of day second heart rate data and details data
418
+ */
419
+ + (NSArray<__kindof IDOSyncSecHrDataInfoBluetoothModel *> *)queryOneDaySecHearRatesDetailWithMac:(NSString *)macAddr
420
+ year:(NSInteger)year
421
+ month:(NSInteger)month
422
+ day:(NSInteger)day
423
+ isQueryItems:(BOOL)isQuery;
424
+
425
+ /**
426
+ * @brief 查询所有秒钟心率数据 心率包个数大于0 | Query all second heart rate data The number of heart rate packets is greater than 0
427
+ * @param macAddr mac 地址 | mac address
428
+ * @return 所有秒钟心率数据的集合 | Collection of all second heart rate data and details data
429
+ */
430
+ + (NSArray <__kindof IDOSyncSecHrDataInfoBluetoothModel *>*)queryAllSecHearRatesWithMac:(NSString *)macAddr;
431
+
432
+ /**
433
+ * @brief 查询所有秒钟心率数据 心率包个数大于0 只包含静心心率和日期时间戳
434
+ * Query all second heart rate data The number of heart rate packets is greater than 0
435
+ * Contains only meditation heart rate and date and time stamp
436
+ * @param macAddr mac 地址 | mac address
437
+ * @return 所有心率数据的集合 | Collection of all heart rate data
438
+ */
439
+ + (NSArray <__kindof IDOSyncSecHrDataInfoBluetoothModel *>*)queryAllContractedSecHearRatesWithMac:(NSString *)macAddr;
440
+
441
+ @end
442
+