diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncActivityDataModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncActivityDataModel.h | 207 |
1 files changed, 207 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncActivityDataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncActivityDataModel.h new file mode 100755 index 0000000..8aaab8b --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncActivityDataModel.h | |||
| @@ -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 | ||
