summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSwimDataModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSwimDataModel.h')
-rwxr-xr-xlibs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSwimDataModel.h188
1 files changed, 188 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSwimDataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSwimDataModel.h
new file mode 100755
index 0000000..2719fdb
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSwimDataModel.h
@@ -0,0 +1,188 @@
1//
2// IDOSyncSwimDataModel.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
11#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
12#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
13#else
14#import "IDOBluetoothBaseModel.h"
15#endif
16
17@interface IDOSyncSwimItemDataInfoBluetoothModel : IDOBluetoothBaseModel
18/**
19 开始时间 精确到秒 | start time interval since 1970 (eg 14442361933)
20 */
21@property (nonatomic,copy) NSString * timeStr;
22
23/**
24 持续时间 (单位:秒) | duration (unit:second)
25 */
26@property (nonatomic,assign) NSInteger duration;
27
28/**
29 划水次数 | strokes number
30 */
31@property (nonatomic,assign) NSInteger strokesNumber;
32
33/**
34 评分 | swolf
35 */
36@property (nonatomic,assign) NSInteger swolf;
37
38/**
39 序列号 | Serial number
40 */
41@property (nonatomic,assign) NSInteger serialNumber;
42
43/**
44 * 每一趟的泳姿 | swimming posture
45 * 0x00 : 混合泳; 0x01 : 自由泳; 0x02 : 蛙泳; 0x03 : 仰泳; 0x04 : 蝶泳;
46 * 0x00: medley; 0x01: freestyle; 0x02: breaststroke; 0x03: backstroke; 0x04: butterfly stroke;
47 */
48@property (nonatomic,assign) NSInteger swimmingPosture;
49
50/**
51 每一趟的距离 (单位:米) | distance (unit:m)
52 */
53@property (nonatomic,assign) NSInteger distance;
54
55@end
56
57@interface IDOSyncSwimmingDataInfoBluetoothModel : IDOBluetoothBaseModel
58/**
59 年份 | Year
60 */
61@property (nonatomic,assign) NSInteger year;
62
63/**
64 月份 | Month
65 */
66@property (nonatomic,assign) NSInteger month;
67
68/**
69 日期 | Date
70 */
71@property (nonatomic,assign) NSInteger day;
72
73/**
74 时 | hour
75 */
76@property (nonatomic,assign) NSInteger hour;
77
78/**
79 分 | minutes
80 */
81@property (nonatomic,assign) NSInteger minute;
82
83/**
84 秒 | seconds
85 */
86@property (nonatomic,assign) NSInteger second;
87
88/**
89 日期 精确到日期 date interval since 1970 (如:1444361933) | Date time interval since 1970 (eg 14442361933)
90 */
91@property (nonatomic,copy) NSString * dateStr;
92
93/**
94 开始时间 精确到秒 | start time interval since 1970 (eg 14442361933)
95 */
96@property (nonatomic,copy) NSString * timeStr;
97
98/**
99 游泳类型 0x00:无效,0x01:室内游泳,0x02:开阔水域游泳 | 0x00:invalid,0x01:Indoor swimming,0x02:Open water swimming
100 */
101@property (nonatomic,assign) NSInteger type;
102
103/**
104 卡路里(单 位:大卡) | Calories (Unit: Big Card)
105 */
106@property (nonatomic,assign) NSInteger calories;
107
108/**
109 距离(单位: 米) | Distance (in meters)
110 */
111@property (nonatomic,assign) NSInteger distance;
112
113/**
114 游泳趟数 | Swimming train number
115 */
116@property (nonatomic,assign) NSInteger trips;
117
118/**
119 平均 swolf | average swolf
120 */
121@property (nonatomic,assign) NSInteger averageSwolf;
122
123/**
124 总划水次数 | total strokes number
125 */
126@property (nonatomic,assign) NSInteger totalStrokesNumber;
127
128/**
129 * 主泳姿 | swimming posture
130 * 0x00 : 混合泳; 0x01 : 自由泳; 0x02 : 蛙泳; 0x03 : 仰泳; 0x04 : 蝶泳;
131 * 0x00: medley; 0x01: freestyle; 0x02: breaststroke; 0x03: backstroke; 0x04: butterfly stroke;
132 */
133@property (nonatomic,assign) NSInteger swimmingPosture;
134
135/**
136 泳池距离 (单位:cm) | pool distance (unit:cm)
137 */
138@property (nonatomic,assign) NSInteger poolDistance;
139
140/**
141 游泳数据包量 | swimming data package
142 */
143@property (nonatomic,assign) NSInteger itemsCount;
144
145/**
146 * @brief 游泳集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性
147 * swimming collection Only defined query methods can be converted into model collections. Custom query methods cannot be directly converted
148 * into model collections. You need to query itemModel to assign current attributes.
149 */
150@property (nonatomic,copy) NSArray <IDOSyncSwimItemDataInfoBluetoothModel *>* swimmingItems;
151
152/**
153 用户确认的距离 | confirm distance
154 */
155@property (nonatomic,assign) NSInteger confirmDistance;
156
157/**
158 游泳持续时长 单位:分钟 | duration unit:minute
159 */
160@property (nonatomic,assign) NSInteger duration;
161
162@end
163
164
165@interface IDOSyncSwimDataModel : NSObject
166/**
167 * @brief 当前设备根据游泳开始时间查询某个游泳详情
168 * The current device queries an swim details based on the event start time
169 * @param macAddr mac地址 | Mac address
170 * @param timeStr 游泳开始时间 | swim start time
171 * @return model IDOSyncSwimmingDataInfoBluetoothModel
172 */
173+ (__kindof IDOSyncSwimmingDataInfoBluetoothModel *)querySwimDataWithTimeStr:(NSString *)timeStr
174 macAddr:(NSString *)macAddr;
175
176/**
177 * @brief 当前设备查询一天所有游泳数据
178 * The current device queries an swim details based on the event start time
179 * @param macAddr mac地址 | Mac address
180 * @param dateStr 日期时间戳 | Date time stamp
181 * @param isQuery 是否查询items | is query items
182 * @return 一天游泳数据的集合 | Collection of day swim data
183 */
184+ (NSArray <__kindof IDOSyncSwimmingDataInfoBluetoothModel *>*)querySwimDataWithDateStr:(NSString *)dateStr
185 macAddr:(NSString *)macAddr
186 isQueryItems:(BOOL)isQuery;
187
188@end