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,207 @@
1
+ //
2
+ // IDOSyncActivityDataModel.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 IDOSyncActivityDataInfoBluetoothModel : IDOBluetoothBaseModel
17
+
18
+ /**
19
+ 年份 | Year
20
+ */
21
+ @property (nonatomic,assign) NSInteger year;
22
+
23
+ /**
24
+ 月份 | Month
25
+ */
26
+ @property (nonatomic,assign) NSInteger month;
27
+
28
+ /**
29
+ 日期 | Date
30
+ */
31
+ @property (nonatomic,assign) NSInteger day;
32
+
33
+ /**
34
+ 时 | hour
35
+ */
36
+ @property (nonatomic,assign) NSInteger hour;
37
+
38
+ /**
39
+ 分 | minutes
40
+ */
41
+ @property (nonatomic,assign) NSInteger minute;
42
+
43
+ /**
44
+ 秒 | seconds
45
+ */
46
+ @property (nonatomic,assign) NSInteger second;
47
+
48
+ /**
49
+ 日期 精确到日期 date interval since 1970 (如:1444361933) | Date time interval since 1970 (eg 14442361933)
50
+ */
51
+ @property (nonatomic,copy) NSString * dateStr;
52
+
53
+ /**
54
+ 开始时间 精确到秒 | start time interval since 1970 (eg 14442361933)
55
+ */
56
+ @property (nonatomic,copy) NSString * timeStr;
57
+
58
+ /**
59
+ 数据长度 | Data length
60
+ */
61
+ @property (nonatomic,assign) NSInteger dataLength;
62
+
63
+ /**
64
+ 心率数据产生间隔 (单位 : s) | Heart rate data generation interval (unit: s)
65
+ */
66
+ @property (nonatomic,assign) NSInteger hrInterval;
67
+
68
+ /**
69
+ 心率项数据个数 | Heart rate item data
70
+ */
71
+ @property (nonatomic,assign) NSInteger hrItemCount;
72
+
73
+ /**
74
+ 包的总数 | Total number of packages
75
+ */
76
+ @property (nonatomic,assign) NSInteger packetCount;
77
+
78
+ /*
79
+ * 类型:0x01:走路, 0x02:跑步, 0x03:骑行 0x04:徒步 这些类型才有轨迹运动
80
+ * Type: 0x01: Walk, 0x02: Running, 0x03: Cycling 0x04: Walking These types have track motion
81
+ */
82
+ @property (nonatomic,assign) NSInteger type;
83
+
84
+ /**
85
+ 步数(骑行 时,步数为 0) | Number of steps (when riding, the number of steps is 0)
86
+ */
87
+ @property (nonatomic,assign) NSInteger step;
88
+
89
+ /**
90
+ 持续时长 (单位:s) | Duration (unit: s)
91
+ */
92
+ @property (nonatomic,assign) NSInteger durations;
93
+
94
+ /**
95
+ 卡路里(单 位:大卡) | Calories (Unit: Big Card)
96
+ */
97
+ @property (nonatomic,assign) NSInteger calories;
98
+
99
+ /**
100
+ 距离(单位: 米) | Distance (in meters)
101
+ */
102
+ @property (nonatomic,assign) NSInteger distance;
103
+
104
+ /**
105
+ 平均心率 | Average heart rate
106
+ */
107
+ @property (nonatomic,assign) NSInteger avgHrValue;
108
+
109
+ /**
110
+ 最大心率 | Maximum heart rate
111
+ */
112
+ @property (nonatomic,assign) NSInteger maxHrValue;
113
+
114
+ /**
115
+ 脂肪燃烧时长 | Fat burning time
116
+ */
117
+ @property (nonatomic,assign) NSInteger burnFatMins;
118
+
119
+ /**
120
+ 心肺锻炼时长 [有氧运动时长] (分钟) | Cardio workout time (minutes)
121
+ */
122
+ @property (nonatomic,assign) NSInteger aerobicMins;
123
+
124
+ /**
125
+ 极限锻炼时长 (分钟) | Extreme workout time (minutes)
126
+ */
127
+ @property (nonatomic,assign) NSInteger limitMins;
128
+
129
+ /**
130
+ 无氧锻炼时长 (分钟) | Anaerobic workout time (minutes)
131
+ */
132
+ @property (nonatomic,assign) NSInteger anaerobicMins;
133
+
134
+ /**
135
+ 热身锻炼时长 (分钟) | Warm up workout time (minutes)
136
+ */
137
+ @property (nonatomic,assign) NSInteger warmUpMins;
138
+
139
+ /**
140
+ 有序列号的心率集合 json字符串 | Heart rate collection with serial number json string
141
+ */
142
+ @property (nonatomic,copy) NSString * hrValuesStr;
143
+
144
+ /**
145
+ 是否需要保存数据 (用于数据交换) | Do you need to save data (for data exchange)
146
+ */
147
+ @property (nonatomic,assign) BOOL isSave;
148
+
149
+ /**
150
+ * 运动发起端 (1 : 手环发起 0 : app发起)
151
+ * Sports Initiator (1 : Bracelet Initiation 0 : app initiated)
152
+ */
153
+ @property (nonatomic,assign) NSInteger startFrom;
154
+
155
+ @end
156
+
157
+ @interface IDOSyncActivityDataModel : NSObject
158
+ /**
159
+ * @brief 当前设备根据活动开始时间查询某个活动详情
160
+ * The current device queries an event details based on the event start time
161
+ * @param macAddr mac地址 | Mac address
162
+ * @param timeStr 活动开始时间 | Event start time
163
+ * @return model IDOSyncActivityDataInfoBluetoothModel
164
+ */
165
+ + (__kindof IDOSyncActivityDataInfoBluetoothModel *)queryOneActivityDataWithTimeStr:(NSString *)timeStr
166
+ macAddr:(NSString *)macAddr;
167
+
168
+ /**
169
+ * @brief 当前设备根据日期查询某天的活动集合
170
+ * The current device queries the collection of events for a certain day based on the date
171
+ * @param macAddr mac地址 | Mac address
172
+ * @param year 年份 | year
173
+ * @param month 月份 | month
174
+ * @param day 日期 | day
175
+ * @return 活动集合 | Activity collection
176
+ */
177
+ + (NSArray <__kindof IDOSyncActivityDataInfoBluetoothModel *>*)queryOneDayActivityDataWithMacAddr:(NSString *)macAddr
178
+ year:(NSInteger)year
179
+ month:(NSInteger)month
180
+ day:(NSInteger)day;
181
+
182
+
183
+ /**
184
+ * @brief 当前设备活动分页查询活动集合 | Current Device Activity Paging Query Activity Collection
185
+ * @param pageIndex 页码 第几页 (如 : 0,1,2,3,4,...) | Page Number of pages (eg : 0,1,2,3,4,...)
186
+ * @param numOfPage 每页的数据个数 (如 : 10,20,30...) | The number of data per page (eg: 10, 20, 30...)
187
+ * @param macAddr mac地址 | Mac address
188
+ * @return 活动集合
189
+ */
190
+ + (NSArray <__kindof IDOSyncActivityDataInfoBluetoothModel *>*)queryOnePageActivityDataWithPageIndex:(NSInteger)pageIndex
191
+ numOfPage:(NSInteger)numOfPage
192
+ macAddr:(NSString *)macAddr;
193
+
194
+ /**
195
+ * @brief 当前设备所有轨迹运动 | Current track motion of all devices
196
+ * @param macAddr mac 地址 | mac address
197
+ * @return 活动集合 | Activity collection
198
+ */
199
+ + (NSArray <__kindof IDOSyncActivityDataInfoBluetoothModel *>*)queryAllTrajectorySportActivitysWithMac:(NSString *)macAddr;
200
+
201
+ /**
202
+ * @brief 当前设备所有轻运动 | Current equipment all light sports
203
+ * @param macAddr mac 地址 | mac address
204
+ * @return 活动集合 | Activity collection
205
+ */
206
+ + (NSArray <__kindof IDOSyncActivityDataInfoBluetoothModel *>*)queryAllLightSportActivitysWithMac:(NSString *)macAddr;
207
+ @end
@@ -0,0 +1,191 @@
1
+ //
2
+ // IDOSyncBpDataModel.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 IDOSyncBpDataItemInfoBluetoothModel : IDOBluetoothBaseModel
17
+
18
+ /**
19
+ 较大收缩压 | Large systolic pressure
20
+ */
21
+ @property (nonatomic,assign) NSInteger sysBlood;
22
+
23
+ /**
24
+ 较小舒张压 | Small diastolic pressure
25
+ */
26
+ @property (nonatomic,assign) NSInteger diasBlood;
27
+
28
+ /**
29
+ 子时间偏移量 (分钟) | Subtime offset (minutes)
30
+ */
31
+ @property (nonatomic,assign) NSInteger offset DEPRECATED_MSG_ATTRIBUTE("parameter is invalidp,please use \"timeStr\"");
32
+
33
+ /**
34
+ 序列号 | Serial number
35
+ */
36
+ @property (nonatomic,assign) NSInteger serialNumber DEPRECATED_MSG_ATTRIBUTE("parameter is invalid,please use \"timeStr\"");
37
+
38
+ /**
39
+ 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
40
+ */
41
+ @property (nonatomic,copy) NSString * dateStr;
42
+
43
+ /**
44
+ 时间戳 精确到分钟 time interval since 1970 (如:1444361933) | Timestamp time interval since 1970 (eg: 14443361933)
45
+ */
46
+ @property (nonatomic,copy) NSString * timeStr;
47
+
48
+ /**
49
+ 本地设置数据,区分手环同步的数据 | Locally set data to distinguish the data of the bracelet synchronization
50
+ */
51
+ @property (nonatomic,assign) BOOL isLocal;
52
+
53
+ @end
54
+
55
+ @interface IDOSyncBpDataInfoBluetoothModel : IDOBluetoothBaseModel
56
+
57
+ /**
58
+ 血压数据包量 | Blood pressure data package
59
+ */
60
+ @property (nonatomic,assign) NSInteger itemsCount;
61
+
62
+ /**
63
+ 睡眠平均血压 | Average blood pressure in sleep
64
+ */
65
+ @property (nonatomic,assign) NSInteger sleepAvgBp;
66
+
67
+ /**
68
+ 最大血压值 | Maximum blood pressure value
69
+ */
70
+ @property (nonatomic,assign) NSInteger maxBp;
71
+
72
+ /**
73
+ 年份 | Year
74
+ */
75
+ @property (nonatomic,assign) NSInteger year;
76
+
77
+ /**
78
+ 月份 | Month
79
+ */
80
+ @property (nonatomic,assign) NSInteger month;
81
+
82
+ /**
83
+ 日期 | Date
84
+ */
85
+ @property (nonatomic,assign) NSInteger day;
86
+
87
+ /**
88
+ * 血压集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性
89
+ * Blood pressure collection Only defined query methods can be converted into model collections. Custom query methods cannot be directly
90
+ * converted into model collections. You need to query itemModel to assign current attributes.
91
+ */
92
+ @property (nonatomic,copy) NSArray <IDOSyncBpDataItemInfoBluetoothModel *>* bloodbPressures;
93
+
94
+ /**
95
+ 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
96
+ */
97
+ @property (nonatomic,copy) NSString * dateStr;
98
+
99
+ /**
100
+ 总时间偏移量 (分钟) | Total time offset (minutes)
101
+ */
102
+ @property (nonatomic,assign) NSUInteger minuteOffset;
103
+
104
+ /**
105
+ 本地设置数据,区分手环同步的数据 | Locally set data to distinguish the data of the bracelet synchronization
106
+ */
107
+ @property (nonatomic,assign) BOOL isLocal;
108
+
109
+ @end
110
+
111
+ @interface IDOSyncBpDataModel : NSObject
112
+ /**
113
+ * @brief 查询当前设备某年12个月所有数据 (如果查询当月无数据,会创建空的数据对象,大于当月的数据不累加)
114
+ * Query all data of the current device for 12 months in a certain year (If there is no data in the current month, an empty data object will be created,
115
+ * and the data larger than the current month will not be accumulated)
116
+ * @param year 年 (如 : 2018) | year (eg 2018)
117
+ * @param isQuery 是否查询items | is query items
118
+ * @return 一年12个月的血压数据集合,其中IDOSyncBpDataInfoBluetoothModel对象是一天总血压数据模型
119
+ * A 12-month blood pressure data collection, where the IDOSyncBpDataInfoBluetoothModel object is a total blood pressure data model for the day
120
+ */
121
+ + (NSArray <NSArray<__kindof IDOSyncBpDataInfoBluetoothModel *>*> *)queryOneYearBloodPressuresWithYear:(NSInteger)year
122
+ macAddr:(NSString *)macAddr
123
+ isQueryItems:(BOOL)isQuery;
124
+
125
+ /**
126
+ * @brief 查询当前设备某月份的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
127
+ * 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,
128
+ * which is larger than the data of the day)
129
+ * @param year 年 (如 : 2018) | Year (eg: 2018)
130
+ * @param month 月 (如 : 9) | Month (eg: 9)
131
+ * @param dates 当前查询月份的所有日期集合的指针 (格式 :[10/01...10/31])
132
+ * Pointer to all date collections for the current query month (format: [10/01...10/31])
133
+ * @param isQuery 是否查询items | is query items
134
+ * @return 一个月的血压数据集合,其中IDOSyncBpDataInfoBluetoothModel对象是一天总血压数据模型
135
+ * One month blood pressure data set, where the IDOSyncBpDataInfoBluetoothModel object is the total day blood pressure data model
136
+ */
137
+ + (NSArray <__kindof IDOSyncBpDataInfoBluetoothModel *>*)queryOneMonthBloodPressuresWithYear:(NSInteger)year
138
+ month:(NSInteger)month
139
+ macAddr:(NSString *)macAddr
140
+ datesOfMonth:(NSArray <NSString *>**)dates
141
+ isQueryItems:(BOOL)isQuery;
142
+
143
+ /**
144
+ * @brief 查询当前设备某周的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
145
+ * 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,
146
+ * and the data larger than the current day will not be accumulated)
147
+ * @param weekIndex 周的查询索引 (0 : 当周, 1 : 上一周, 2 : 上两周 ...) | Week's query index (0: week, 1 : last week, 2 : last two weeks...)
148
+ * @param weekStartDay 星期的开始日 (0 : 星期日, 1 : 星期一, 2 : 星期二 ...) | Start of the week (0: Sunday, 1 : Monday, 2 : Tuesday ...)
149
+ * @param dates 当前查询周的所有日期集合的指针 (格式 :[10/01...10/07])
150
+ * Pointer to all date collections for the current query week (format: [10/01...10/07])
151
+ * @param isQuery 是否查询items | is query items
152
+ * @return 一周的血压数据集合,其中IDOSyncBpDataInfoBluetoothModel对象是一天总血压数据模型
153
+ * A week's blood pressure data collection, where the IDOSyncBpDataInfoBluetoothModel object is the total day blood pressure data model
154
+ */
155
+ + (NSArray <__kindof IDOSyncBpDataInfoBluetoothModel *>*)queryOneWeekBloodPressuresWithWeekIndex:(NSInteger)weekIndex
156
+ weekStartDay:(NSInteger)weekStartDay
157
+ macAddr:(NSString *)macAddr
158
+ datesOfWeek:(NSArray <NSString *>**)dates
159
+ isQueryItems:(BOOL)isQuery;
160
+
161
+ /**
162
+ * @brief 查询当前设备某天血压数据并有详情数据
163
+ * Query current device blood pressure data for one day and have detailed data
164
+ * @param macAddr mac 地址 | mac address
165
+ * @param year 年份 | year
166
+ * @param month 月份 | month
167
+ * @param day 日期 | day
168
+ * @return 一天血压数据的集合和详情数据集合 | Collection of day blood pressure data and detailed data
169
+ */
170
+ + (NSArray<__kindof IDOSyncBpDataInfoBluetoothModel *> *)queryOneDayBloodPressureDetailWithMac:(NSString *)macAddr
171
+ year:(NSInteger)year
172
+ month:(NSInteger)month
173
+ day:(NSInteger)day;
174
+
175
+ /**
176
+ * @brief 查询当前设备最近一天血压数据并有详情数据
177
+ * Query the current day's blood pressure data of the device and have detailed data
178
+ * @param macAddr mac 地址 | mac address
179
+ * @return 一天血压数据的集合和详情数据 | Collection of day blood pressure data and detailed data
180
+ */
181
+ + (__kindof IDOSyncBpDataInfoBluetoothModel *)queryLastDayBloodPressureDetailWithMac:(NSString *)macAddr;
182
+
183
+ /**
184
+ * @brief 查询所有血压数据 血压包数大于0
185
+ * Query all blood pressure data The number of blood pressure packets is greater than 0
186
+ * @param macAddr mac 地址 | mac address
187
+ * @return 所有血压数据的集合和详情数据 | Collection and detailed data of all blood pressure data
188
+ */
189
+ + (NSArray <__kindof IDOSyncBpDataInfoBluetoothModel *>*)queryAllBloodPressuresWithMac:(NSString *)macAddr;
190
+ @end
191
+
@@ -0,0 +1,316 @@
1
+ //
2
+ // IDOSyncEnum.h
3
+ // IDOBluetoothInternal
4
+ //
5
+ // Created by 何东阳 on 2019/8/3.
6
+ // Copyright © 2019 何东阳. All rights reserved.
7
+ //
8
+
9
+ #ifndef IDOSyncEnum_h
10
+ #define IDOSyncEnum_h
11
+
12
+ /**
13
+ * 同步状态枚举
14
+ * Synchronization status enumeration
15
+ */
16
+ typedef NS_ENUM(NSInteger, IDO_SYNC_COMPLETE_STATUS) {
17
+ /**
18
+ * 全部同步完成
19
+ * All sync completed
20
+ */
21
+ IDO_SYNC_GLOBAL_COMPLETE = 1,
22
+
23
+ /**
24
+ * 配置同步完成
25
+ * Configuration synchronization completed
26
+ */
27
+ IDO_SYNC_CONFIG_COMPLETE,
28
+
29
+ /**
30
+ * 配置同步完成异常
31
+ * Configure synchronization completion exception
32
+ */
33
+ IDO_SYNC_CONFIG_COMPLETE_EXCEPTION,
34
+
35
+ /**
36
+ * 健康同步完成
37
+ * Health synchronization completed
38
+ */
39
+ IDO_SYNC_HEALTH_COMPLETE,
40
+
41
+ /**
42
+ * 健康同步完成异常
43
+ * Health synchronization completes exception
44
+ */
45
+ IDO_SYNC_HEALTH_COMPLETE_EXCEPTION,
46
+
47
+ /**
48
+ * v3健康同步完成
49
+ * v3 health synchronization completed
50
+ */
51
+ IDO_SYNC_V3_HEALTH_COMPLETE,
52
+
53
+ /**
54
+ * v3健康同步完成异常
55
+ * v3 health synchronization completes exception
56
+ */
57
+ IDO_SYNC_V3_HEALTH_COMPLETE_EXCEPTION,
58
+
59
+ /**
60
+ * 活动同步完成
61
+ * Activity synchronization completed
62
+ */
63
+ IDO_SYNC_ACTIVITY_COMPLETE,
64
+
65
+ /**
66
+ * 活动同步完成异常
67
+ * Activity synchronization completes exception
68
+ */
69
+ IDO_SYNC_ACTIVITY_COMPLETE_EXCEPTION,
70
+
71
+ /**
72
+ * GPS同步完成
73
+ * GPS synchronization completed
74
+ */
75
+ IDO_SYNC_GPS_COMPLETE,
76
+
77
+ /**
78
+ * GPS同步完成异常
79
+ * GPS synchronization completes exception
80
+ */
81
+ IDO_SYNC_GPS_COMPLETE_EXCEPTION,
82
+
83
+ };
84
+
85
+ /**
86
+ * 当前同步类型枚举
87
+ * Current sync type enumeration
88
+ */
89
+ typedef NS_ENUM(NSInteger, IDO_CURRENT_SYNC_TYPE) {
90
+ /**
91
+ * 当前同步配置
92
+ * Current synchronization configuration
93
+ */
94
+ IDO_SYNC_CONFIG_TYPE = 1,
95
+
96
+ /**
97
+ * 当前同步健康
98
+ * Current sync health
99
+ */
100
+ IDO_SYNC_HEALTH_TYPE,
101
+
102
+ /**
103
+ * 当前同步V3健康
104
+ * Current sync Blood oxygen and pressure
105
+ */
106
+ IDO_SYNC_V3_HEALTH_TYPE,
107
+
108
+ /**
109
+ * 当前同步活动
110
+ * Current synchronization activity
111
+ */
112
+ IDO_SYNC_ACTIVITY_TYPE,
113
+
114
+ /**
115
+ * 当前同步GPS
116
+ * Current synchronous GPS
117
+ */
118
+ IDO_SYNC_GPS_TYPE,
119
+
120
+ };
121
+
122
+ /**
123
+ * 同步配置数据类型
124
+ * Synchronous configuration data type
125
+ */
126
+ typedef NS_ENUM(NSInteger, IDO_SYNC_CONFIG_DATA_TYPE) {
127
+ /*
128
+ * 不设置默认数据
129
+ * set none
130
+ */
131
+ IDO_SYNC_DEFAULT_NONE = 0,
132
+ /*
133
+ * 设置当前时间
134
+ * set time
135
+ */
136
+ IDO_SYNC_SET_TIME_TYPE = 1,
137
+ /*
138
+ * 设置闹钟
139
+ * set alarm
140
+ */
141
+ IDO_SYNC_SET_ALARM_TYPE,
142
+ /*
143
+ * 设置久坐
144
+ * set long sit
145
+ */
146
+ IDO_SYNC_SET_LONG_SIT_TYPE,
147
+ /*
148
+ * 设置防丢失
149
+ * set lost find
150
+ */
151
+ IDO_SYNC_SET_LOST_FIND_TYPE,
152
+ /*
153
+ * 设置寻找手机
154
+ * set find phone
155
+ */
156
+ IDO_SYNC_SET_FIND_PHONE_TYPE,
157
+ /*
158
+ * 设置运动目标(步数)
159
+ * set sport goal
160
+ */
161
+ IDO_SYNC_SET_SPORT_GOAL_TYPE,
162
+ /*
163
+ * 设置用户信息
164
+ * set user info
165
+ */
166
+ IDO_SYNC_SET_USER_INFO_TYPE,
167
+ /*
168
+ * 设置单位
169
+ * set unit
170
+ */
171
+ IDO_SYNC_SET_UNIT_TYPE,
172
+ /*
173
+ * 设置开启授权
174
+ * set open auth
175
+ */
176
+ IDO_SYNC_SET_AUTH_TYPE,
177
+ /*
178
+ * 设置心率模式
179
+ * set heart rate mode
180
+ */
181
+ IDO_SYNC_SET_HEART_RATE_MODE_TYPE,
182
+ /*
183
+ * 设置抬手
184
+ * set up hand gesture
185
+ */
186
+ IDO_SYNC_SET_UP_HAND_GESTURE_TYPE,
187
+ /*
188
+ * 设置勿扰模式
189
+ * set do not disturb
190
+ */
191
+ IDO_SYNC_SET_DO_NOT_DISTURB_TYPE,
192
+ /*
193
+ * 设置显示模式
194
+ * set display mode
195
+ */
196
+ IDO_SYNC_SET_DISPLAY_MODE_TYPE,
197
+ /*
198
+ * 设置一键呼叫
199
+ * set one key sos
200
+ */
201
+ IDO_SYNC_SET_ONE_KEY_SOS_TYPE,
202
+ /*
203
+ * 设置音乐开关
204
+ * set muisc on off
205
+ */
206
+ IDO_SYNC_SET_MUISC_ON_OFF_TYPE,
207
+ /*
208
+ * 设置天气开关
209
+ * set weather switch
210
+ */
211
+ IDO_SYNC_SET_WEATHER_SWITCH_TYPE,
212
+ /*
213
+ * 设置心率区间
214
+ * set heart rate interval
215
+ */
216
+ IDO_SYNC_SET_HEART_RATE_INTERVAL_TYPE,
217
+ /*
218
+ * 设置运动模式选择
219
+ * set sport mode select
220
+ */
221
+ IDO_SYNC_SET_SPORT_MODE_SELECT_TYPE,
222
+ /*
223
+ * 设置运动模式排序
224
+ * set sport mode sort
225
+ */
226
+ IDO_SYNC_SET_SPORT_MODE_SORT_TYPE,
227
+ /*
228
+ * 设置表盘
229
+ * set watch dial
230
+ */
231
+ IDO_SYNC_SET_WATCH_DIAL_TYPE,
232
+ /*
233
+ * 设置快捷方式
234
+ * set shortcut
235
+ */
236
+ IDO_SYNC_SET_SHORTCUT_TYPE,
237
+ /*
238
+ * 设置睡眠时间段
239
+ * set sleep period
240
+ */
241
+ IDO_SYNC_SET_SLEEP_PERIOD_TYPE,
242
+ /*
243
+ * 设置屏幕亮度
244
+ * set screen brightness
245
+ */
246
+ IDO_SYNC_SET_SCREEN_BRIGHTNESS_TYPE,
247
+ /*
248
+ * 设置女性生理周期提醒
249
+ * set menstruation remind
250
+ */
251
+ IDO_SYNC_SET_MENSTRUATION_REMIND_TYPE,
252
+ /*
253
+ * 设置女性生理周期
254
+ * set menstruation
255
+ */
256
+ IDO_SYNC_SET_SET_MENSTRUATION_TYPE,
257
+ /*
258
+ * 设置卡路里和距离目标
259
+ * set calorie distance goal
260
+ */
261
+ IDO_SYNC_SET_CALORIE_DISTANCE_GOAL_TYPE,
262
+ /*
263
+ * 设置GPS信息
264
+ * set gps config
265
+ */
266
+ IDO_SYNC_SET_CONFIG_GPS_TYPE,
267
+ /*
268
+ * 设置打开苹果通知开关
269
+ * set open ancs
270
+ */
271
+ IDO_SYNC_SET_BLE_OPEN_ANCS_TYPE,
272
+ /*
273
+ * 设置走路提醒
274
+ * set walk reminder
275
+ */
276
+ IDO_SYNC_SET_WALK_REMINDER_TYPE,
277
+ /*
278
+ * 设置血氧训练
279
+ * set breathe train
280
+ */
281
+ IDO_SYNC_SET_BREATHE_TRAIN_TYPE,
282
+ /*
283
+ * 设置活动识别开关
284
+ * set activity switch
285
+ */
286
+ IDO_SYNC_SET_ACTIVITY_SWITCH_TYPE,
287
+ };
288
+
289
+ /**
290
+ * 设置同步项类型
291
+ * set want to sync item type
292
+ */
293
+ typedef NS_ENUM(NSInteger, IDO_WANT_TO_SYNC_ITEM_TYPE) {
294
+ /*
295
+ * 同步配置
296
+ * sync config
297
+ */
298
+ IDO_WANT_TO_SYNC_CONFIG_ITEM_TYPE = 1 << 0,
299
+ /*
300
+ * 同步健康
301
+ * sync health
302
+ */
303
+ IDO_WANT_TO_SYNC_HEALTH_ITEM_TYPE = 1 << 1,
304
+ /*
305
+ * 同步活动
306
+ * sync activity
307
+ */
308
+ IDO_WANT_TO_SYNC_ACTIVITY_ITEM_TYPE = 1 << 2,
309
+ /*
310
+ * 同步 GPS
311
+ * sync gps
312
+ */
313
+ IDO_WANT_TO_SYNC_GPS_ITEM_TYPE = 1 << 3
314
+ };
315
+
316
+ #endif /* IDOSyncEnum_h */