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/IDOSyncBpDataModel.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncBpDataModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncBpDataModel.h | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncBpDataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncBpDataModel.h new file mode 100755 index 0000000..e475df2 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncBpDataModel.h | |||
| @@ -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 | |||
