diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
| commit | d6d9a09d505d11148599a95a5be3e1351edbe0ac (patch) | |
| tree | a5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncPressureDataModel.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncPressureDataModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncPressureDataModel.h | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncPressureDataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncPressureDataModel.h new file mode 100755 index 0000000..c6301aa --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncPressureDataModel.h | |||
| @@ -0,0 +1,158 @@ | |||
| 1 | // | ||
| 2 | // IDOSyncPressureDataModel.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 IDOSyncPressureItemInfoBluetoothModel : IDOBluetoothBaseModel | ||
| 17 | |||
| 18 | /** | ||
| 19 | 日期 精确到日期 date interval since 1970 (如:1444361933) | Date time interval since 1970 (eg 14442361933) | ||
| 20 | */ | ||
| 21 | @property (nonatomic,copy) NSString * dateStr; | ||
| 22 | |||
| 23 | /** | ||
| 24 | 子时间偏移量 (分钟) | Subtime offset (minutes) | ||
| 25 | */ | ||
| 26 | @property (nonatomic,assign) NSUInteger offset; | ||
| 27 | |||
| 28 | /** | ||
| 29 | 压力值 | pressure value 0 ~ 255 | ||
| 30 | */ | ||
| 31 | @property (nonatomic,assign) NSInteger pressureVal; | ||
| 32 | |||
| 33 | /** | ||
| 34 | 序列号 | Serial number | ||
| 35 | */ | ||
| 36 | @property (nonatomic,assign) NSInteger serialNumber; | ||
| 37 | |||
| 38 | @end | ||
| 39 | |||
| 40 | @interface IDOSyncPressureDataInfoBluetoothModel : IDOBluetoothBaseModel | ||
| 41 | |||
| 42 | /** | ||
| 43 | 年份 | Year | ||
| 44 | */ | ||
| 45 | @property (nonatomic,assign) NSInteger year; | ||
| 46 | |||
| 47 | /** | ||
| 48 | 月份 | Month | ||
| 49 | */ | ||
| 50 | @property (nonatomic,assign) NSInteger month; | ||
| 51 | |||
| 52 | /** | ||
| 53 | 日期 | Date | ||
| 54 | */ | ||
| 55 | @property (nonatomic,assign) NSInteger day; | ||
| 56 | |||
| 57 | /** | ||
| 58 | 日期 精确到日期 date interval since 1970 (如:1444361933) | Date time interval since 1970 (eg 14442361933) | ||
| 59 | */ | ||
| 60 | @property (nonatomic,copy) NSString * dateStr; | ||
| 61 | |||
| 62 | /** | ||
| 63 | 总时间偏移量 (分钟) | Total time offset (minutes) | ||
| 64 | */ | ||
| 65 | @property (nonatomic,assign) NSUInteger minuteOffset; | ||
| 66 | |||
| 67 | /** | ||
| 68 | 压力数据包量 | Pressure data package | ||
| 69 | */ | ||
| 70 | @property (nonatomic,assign) NSInteger itemsCount; | ||
| 71 | |||
| 72 | /** | ||
| 73 | * @brief 压力集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性 | ||
| 74 | * pressure collection Only defined query methods can be converted into model collections. Custom query methods cannot be directly converted | ||
| 75 | * into model collections. You need to query itemModel to assign current attributes. | ||
| 76 | */ | ||
| 77 | @property (nonatomic,copy) NSArray <IDOSyncPressureItemInfoBluetoothModel *>* pressures; | ||
| 78 | |||
| 79 | @end | ||
| 80 | |||
| 81 | @interface IDOSyncPressureDataModel : NSObject | ||
| 82 | /** | ||
| 83 | * @brief 查询当前设备某年12个月所有数据 (如果查询当月无数据,会创建空的数据对象,大于当月的数据不累加) | ||
| 84 | * 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, | ||
| 85 | * and the data larger than the current month will not be accumulated) | ||
| 86 | * @param year 年 (如 : 2018) | Year (eg: 2018) | ||
| 87 | * @param macAddr mac 地址 | mac address | ||
| 88 | * @param isQuery 是否查询items | is query items | ||
| 89 | * @return 一年12个月的压力数据集合,其中IDOSyncPressureDataInfoBluetoothModel对象是一天总血氧数据模型 | ||
| 90 | * pressure data collection for 12 months a year, where the IDOSyncPressureDataInfoBluetoothModel object is the total pressure data model for the day | ||
| 91 | */ | ||
| 92 | + (NSArray <NSArray<__kindof IDOSyncPressureDataInfoBluetoothModel *>*> *)queryOneYearPressureWithYear:(NSInteger)year | ||
| 93 | macAddr:(NSString *)macAddr | ||
| 94 | isQueryItems:(BOOL)isQuery; | ||
| 95 | |||
| 96 | /** | ||
| 97 | * @brief 查询当前设备某月份的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加) | ||
| 98 | * 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, | ||
| 99 | * which is larger than the data of the day) | ||
| 100 | * @param year 年 (如 : 2018) | Year (eg: 2018) | ||
| 101 | * @param month 月 (如 : 9) | Month (eg: 9) | ||
| 102 | * @param macAddr mac 地址 | mac address | ||
| 103 | * @param dates 当前查询月份的所有日期集合的指针 (格式 :[10/01...10/31]) | ||
| 104 | * Pointer to all date collections for the current query month (format: [10/01...10/31]) | ||
| 105 | * @param isQuery 是否查询items | is query items | ||
| 106 | * @return 一个月的压力数据集合,其中IDOSyncPressureDataInfoBluetoothModel对象是一天总压力数据模型 | ||
| 107 | * A one-month pressure data collection, where the IDOSyncPressureDataInfoBluetoothModel object is the total pressure data model for the day | ||
| 108 | */ | ||
| 109 | + (NSArray <__kindof IDOSyncPressureDataInfoBluetoothModel *>*)queryOneMonthPressureWithYear:(NSInteger)year | ||
| 110 | month:(NSInteger)month | ||
| 111 | macAddr:(NSString *)macAddr | ||
| 112 | datesOfMonth:(NSArray <NSString *>**)dates | ||
| 113 | isQueryItems:(BOOL)isQuery; | ||
| 114 | |||
| 115 | /** | ||
| 116 | * @brief 查询当前设备某周的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加) | ||
| 117 | * 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, | ||
| 118 | * and the data larger than the current day will not be accumulated) | ||
| 119 | * @param weekIndex 周的查询索引 (0 : 当周, 1 : 上一周, 2 : 上两周 ...) | Week's query index (0: week, 1 : last week, 2 : last two weeks...) | ||
| 120 | * @param weekStartDay 星期的开始日 (0 : 星期日, 1 : 星期一, 2 : 星期二 ...) | Start of the week (0: Sunday, 1 : Monday, 2 : Tuesday ...) | ||
| 121 | * @param macAddr mac 地址 | mac address | ||
| 122 | * @param dates 当前查询周的所有日期集合的指针 (格式 :[10/01...10/07]) | ||
| 123 | * Pointer to all date collections for the current query week (format: [10/01...10/07]) | ||
| 124 | * @param isQuery 是否查询items | is query items | ||
| 125 | * @return 一周的压力数据集合,其中IDOSyncPressureDataInfoBluetoothModel对象是一天总压力数据模型 | ||
| 126 | * A week's pressure data collection, where the IDOSyncPressureDataInfoBluetoothModel object is the total pressure data model for the day | ||
| 127 | */ | ||
| 128 | + (NSArray <__kindof IDOSyncPressureDataInfoBluetoothModel *>*)queryOneWeekPressureWithWeekIndex:(NSInteger)weekIndex | ||
| 129 | weekStartDay:(NSInteger)weekStartDay | ||
| 130 | macAddr:(NSString *)macAddr | ||
| 131 | datesOfWeek:(NSArray <NSString *>**)dates | ||
| 132 | isQueryItems:(BOOL)isQuery; | ||
| 133 | |||
| 134 | /** | ||
| 135 | * @brief 查询当前设备某天压力数据并有详情数据 | ||
| 136 | * Query current pressure data of the current device and have detailed data | ||
| 137 | * @param macAddr mac 地址 | mac address | ||
| 138 | * @param year 年份 | year | ||
| 139 | * @param month 月份 | month | ||
| 140 | * @param day 日期 | day | ||
| 141 | * @return 一天压力数据的集合和详情数据集合 | Collection of day pressure data and details data | ||
| 142 | */ | ||
| 143 | + (NSArray <__kindof IDOSyncPressureDataInfoBluetoothModel *>*)queryOneDayPressureDetailWithMac:(NSString *)macAddr | ||
| 144 | Year:(NSInteger)year | ||
| 145 | month:(NSInteger)month | ||
| 146 | day:(NSInteger)day; | ||
| 147 | |||
| 148 | /** | ||
| 149 | * @brief 查询所有压力数据,压力包个数大于0 | ||
| 150 | * Query all pressure data The number of pressure packets is greater than 0 | ||
| 151 | * @param macAddr mac地址 | mac address | ||
| 152 | * @return 所有压力数据的集合和详情数据(不包括当天数据) | ||
| 153 | * Collection of all pressure data and details data(Data for the day are not included) | ||
| 154 | */ | ||
| 155 | + (NSArray <__kindof IDOSyncPressureDataInfoBluetoothModel *>*)queryAllPressuresWithMac:(NSString *)macAddr; | ||
| 156 | |||
| 157 | @end | ||
| 158 | |||
