summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h
diff options
context:
space:
mode:
authorhc <haocheng.xie@respiree.com>2026-04-13 15:17:52 +0800
committerhc <haocheng.xie@respiree.com>2026-04-13 15:17:52 +0800
commitd6d9a09d505d11148599a95a5be3e1351edbe0ac (patch)
treea5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h
parente4fb9966e762852bf17f21c8406501d42fae0b61 (diff)
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h')
-rwxr-xr-xlibs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h221
1 files changed, 221 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h
new file mode 100755
index 0000000..5db27b8
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSportDataModel.h
@@ -0,0 +1,221 @@
1//
2// IDOSyncSportDataModel.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 IDOSyncSportDataItemInfoBluetoothModel : IDOBluetoothBaseModel
17
18/**
19 运动模式 | Sports mode (unit: number of steps)
20 */
21@property (nonatomic,assign) NSInteger mode;
22
23/**
24 运动步数 | Number of steps
25 */
26@property (nonatomic,assign) NSInteger sportCount;
27
28/**
29 活跃时间 (秒) | Active time (seconds)
30 */
31@property (nonatomic,assign) NSInteger activeTime;
32
33/**
34 卡路里(大卡) | Calories (unit: big card)
35 */
36@property (nonatomic,assign) NSInteger calories;
37
38/**
39 运动距离(米) | Sport distance (unit: m)
40 */
41@property (nonatomic,assign) NSInteger distance;
42
43/**
44 运动时间日期 精确到日期 | Sports time and date
45 */
46@property (nonatomic,copy) NSString * dateStr;
47
48/**
49 序列号 | Serial number
50 */
51@property (nonatomic,assign) NSInteger serialNumber;
52
53@end
54
55@interface IDOSyncSportDataInfoBluetoothModel : IDOBluetoothBaseModel
56
57/**
58 运动数据包数量 | Number of sports packets
59 */
60@property (nonatomic,assign) NSInteger itemsCount;
61
62/**
63 年份 | Year
64 */
65@property (nonatomic,assign) NSInteger year;
66
67/**
68 月份 | Month
69 */
70@property (nonatomic,assign) NSInteger month;
71
72/**
73 日期 | Date
74 */
75@property (nonatomic,assign) NSInteger day;
76
77/**
78 时间戳 精确到日期 date interval since 1970 (如:1444361933) | Timestamp date interval since 1970 (eg: 14443361933)
79 */
80@property (nonatomic,copy) NSString * dateStr;
81
82/**
83 * 运动数据集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性
84 * Motion data collection Only defined query methods can be converted into model collections. Custom query methods cannot be directly
85 * converted into model collections. You need to query itemModel to assign current attributes.
86 */
87@property (nonatomic,copy) NSArray <IDOSyncSportDataItemInfoBluetoothModel *>* sportItems;
88
89/**
90 运动总步数(单位 :步数) | Total number of steps in sports (unit: number of steps)
91 */
92@property (nonatomic,assign) NSInteger totalStep;
93
94/**
95 运动总消耗卡路里(单位 :大卡) | Total calories burned by exercise (unit: big card)
96 */
97@property (nonatomic,assign) NSInteger totalCalories;
98
99/**
100 运动总距离(单位 :米) | Total distance of movement (unit: m)
101 */
102@property (nonatomic,assign) NSInteger totalDistances;
103
104/**
105 运动总时长 (秒) | Total length of exercise (seconds)
106 */
107@property (nonatomic,assign) NSInteger totalActiveTime;
108
109/**
110 开始偏移量 | Start offset
111 */
112@property (nonatomic,assign) NSInteger minuteOffset;
113
114/**
115 产生数据间隔 | Generate data interval
116 */
117@property (nonatomic,assign) NSInteger perMinute;
118
119/**
120 目标运动数量 | Number of target sports
121 */
122@property (nonatomic,assign) NSInteger goalSportData;
123
124/**
125 一天步数items个数 | one day total items count
126 */
127@property (nonatomic,assign) NSInteger totalCount;
128
129/**
130 只有用于 Donha app | Only for the Donha app
131 关键字 0:无效;1:超;2:浪;3:稳;4:慢;5:懒;6:香;7:安;8:困;9:燃;10:暖;11:动;12:佛;13:秀;14:拼;15:惯;16:凉;
132 */
133@property (nonatomic,assign) NSInteger keyWord;
134
135@end
136
137
138@interface IDOSyncSportDataModel : NSObject
139/**
140 * @brief 查询当前设备某年12个月所有数据 (如果查询当月无数据,会创建空的数据对象,大于当月的数据不累加)
141 * 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,
142 * and the data larger than the current month will not be accumulated)
143 * @param year 年 (如 : 2018) | Year (eg: 2018)
144 * @param macAddr mac 地址 | mac address
145 * @param isQuery 是否查询items | is query items
146 * @return 一年12个月的运动数据集合,其中IDOSyncSportDataInfoBluetoothModel对象是一天总运动数据模型
147 * A 12-month sports data collection, where the IDOSyncSportDataInfoBluetoothModel object is a total day motion data model
148 */
149+ (NSArray <NSArray <__kindof IDOSyncSportDataInfoBluetoothModel *> *>*)queryOneYearSportsWithYear:(NSInteger)year
150 macAddr:(NSString *)macAddr
151 isQueryItems:(BOOL)isQuery;
152
153/**
154 * @brief 查询当前设备某月份的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
155 * 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,
156 * which is larger than the data of the day)
157 * @param year 年 (如 : 2018) | Year (eg: 2018)
158 * @param month 月 (如 : 9) | Month (eg: 9)
159 * @param macAddr mac 地址 | mac address
160 * @param dates 当前查询月份的所有日期集合的指针 (格式 :[10/01...10/31])
161 * Pointer to all date collections for the current query month (format: [10/01...10/31])
162 * @param isQuery 是否查询items | is query items
163 * @return 一个月的运动数据集合,其中IDOSyncSportDataInfoBluetoothModel对象是一天总运动数据模型
164 * One month of motion data collection, where the IDOSyncSportDataInfoBluetoothModel object is the total day motion data model
165 */
166+ (NSArray <__kindof IDOSyncSportDataInfoBluetoothModel *>*)queryOneMonthSportsWithYear:(NSInteger)year
167 month:(NSInteger)month
168 macAddr:(NSString *)macAddr
169 datesOfMonth:(NSArray <NSString *>**)dates
170 isQueryItems:(BOOL)isQuery;
171
172/**
173 * @brief 查询当前设备某周的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加)
174 * 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,
175 * and the data larger than the current day will not be accumulated)
176 * @param weekIndex 周的查询索引 (0 : 当周, 1 : 上一周, 2 : 上两周 ...) | Week's query index (0: week, 1 : last week, 2 : last two weeks...)
177 * @param weekStartDay 星期的开始日 (0 : 星期日, 1 : 星期一, 2 : 星期二 ...) | Start of the week (0: Sunday, 1 : Monday, 2 : Tuesday ...)
178 * @param macAddr mac 地址 | mac address
179 * @param dates 当前查询周的所有日期集合的指针 (格式 :[10/01...10/07])
180 * Pointer to all date collections for the current query week (format: [10/01...10/07])
181 * @param isQuery 是否查询items | is query items
182 * @return 一周的运动数据集合,其中IDOSyncSportDataInfoBluetoothModel对象是一天总运动数据模型
183 * A week of motion data collection, where the IDOSyncSportDataInfoBluetoothModel object is the total day motion data model
184 */
185+ (NSArray <__kindof IDOSyncSportDataInfoBluetoothModel *>*)queryOneWeekSportsWithWeekIndex:(NSInteger)weekIndex
186 weekStartDay:(NSInteger)weekStartDay
187 macAddr:(NSString *)macAddr
188 datesOfWeek:(NSArray <NSString *>**)dates
189 isQueryItems:(BOOL)isQuery;
190
191
192/**
193 * @brief 查询当前设备某天运动据并有详情数据 | Query the current device's mobile data and have detailed data
194 * @param macAddr mac 地址 | mac address
195 * @param year 年份 | year
196 * @param month 月份 | month
197 * @param day 日期 | day
198 * @return 一天运动数据的集合和详情数据集合 | Collection of daily exercise data and detailed data
199 */
200+ (NSArray <__kindof IDOSyncSportDataInfoBluetoothModel *>*)queryOneDaySportDetailWithMac:(NSString *)macAddr
201 year:(NSInteger)year
202 month:(NSInteger)month
203 day:(NSInteger)day;
204
205/**
206 * @brief 查询所有运动数据 步数大于0 | Query all motion data Steps greater than 0
207 * @param macAddr mac 地址 | mac address
208 * @return 所有运动数据的集合 | Collection of all the motion data
209 */
210+ (NSArray <__kindof IDOSyncSportDataInfoBluetoothModel *>*)queryAllSportsWithMac:(NSString *)macAddr;
211
212/**
213 * @brief 查询所有运动数据 步数大于0 只包含总步数和日期时间戳
214 * Query all motion data Steps greater than 0 ; Contains only the total number of steps and the date and time stamp
215 * @param macAddr mac 地址 | mac address
216 * @return 所有运动数据的集合 | Collection of all the motion data
217 */
218+ (NSArray <__kindof IDOSyncSportDataInfoBluetoothModel *>*)queryAllContractedSportsWithMac:(NSString *)macAddr;
219
220@end
221