diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSpo2DataModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSpo2DataModel.h | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSpo2DataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSpo2DataModel.h new file mode 100755 index 0000000..ec06a91 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncSpo2DataModel.h | |||
| @@ -0,0 +1,175 @@ | |||
| 1 | // | ||
| 2 | // IDOSyncSpo2DataModel.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 IDOSyncBloodOxygenItemInfoBluetoothModel : IDOBluetoothBaseModel | ||
| 17 | |||
| 18 | /** | ||
| 19 | 日期 time interval since 1970 (如:1444361933) | Date time interval since 1970 (eg 14442361933) | ||
| 20 | */ | ||
| 21 | @property (nonatomic,copy) NSString * dateStr; | ||
| 22 | |||
| 23 | /** | ||
| 24 | 子时间偏移量 (秒钟) | Subtime offset (second) | ||
| 25 | */ | ||
| 26 | @property (nonatomic,assign) NSUInteger offset; | ||
| 27 | |||
| 28 | /** | ||
| 29 | 血氧值 | Blood oxygen value 0 ~ 255 | ||
| 30 | */ | ||
| 31 | @property (nonatomic,assign) NSInteger spo2Val; | ||
| 32 | |||
| 33 | /** | ||
| 34 | 序列号 | Serial number | ||
| 35 | */ | ||
| 36 | @property (nonatomic,assign) NSInteger serialNumber; | ||
| 37 | |||
| 38 | @end | ||
| 39 | |||
| 40 | @interface IDOSyncBloodOxygenDataInfoBluetoothModel : 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 (second) | ||
| 64 | */ | ||
| 65 | @property (nonatomic,assign) NSUInteger minuteOffset; | ||
| 66 | |||
| 67 | /** | ||
| 68 | 血氧数据包量 | Blood pressure data package | ||
| 69 | */ | ||
| 70 | @property (nonatomic,assign) NSInteger itemsCount; | ||
| 71 | |||
| 72 | /** | ||
| 73 | * 血氧集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性 | ||
| 74 | * blood oxygen 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 <IDOSyncBloodOxygenItemInfoBluetoothModel *>* bloodOxygens; | ||
| 78 | |||
| 79 | /** | ||
| 80 | 平均血氧 | Average blood oxygen | ||
| 81 | */ | ||
| 82 | @property (nonatomic,assign) NSInteger avgBloodOxygen; | ||
| 83 | |||
| 84 | /** | ||
| 85 | 最大血氧 | Maximum blood oxygen | ||
| 86 | */ | ||
| 87 | @property (nonatomic,assign) NSInteger maxBloodOxygen; | ||
| 88 | |||
| 89 | /** | ||
| 90 | 最小血氧 | Most blood oxygen | ||
| 91 | */ | ||
| 92 | @property (nonatomic,assign) NSInteger minBloodOxygen; | ||
| 93 | |||
| 94 | @end | ||
| 95 | |||
| 96 | |||
| 97 | @interface IDOSyncSpo2DataModel : NSObject | ||
| 98 | /** | ||
| 99 | * @brief 查询当前设备某年12个月所有数据 (如果查询当月无数据,会创建空的数据对象,大于当月的数据不累加) | ||
| 100 | * 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, | ||
| 101 | * and the data larger than the current month will not be accumulated) | ||
| 102 | * @param year 年 (如 : 2018) | Year (eg: 2018) | ||
| 103 | * @param macAddr mac 地址 | mac address | ||
| 104 | * @param isQuery 是否查询items | is query items | ||
| 105 | * @return 一年12个月的血氧数据集合,其中IDOSyncBloodOxygenDataInfoBluetoothModel对象是一天总血氧数据模型 | ||
| 106 | * Blood oxygen data collection for 12 months a year, where the IDOSyncBloodOxygenDataInfoBluetoothModel object is the total blood oxygen data model for the day | ||
| 107 | */ | ||
| 108 | + (NSArray <NSArray<__kindof IDOSyncBloodOxygenDataInfoBluetoothModel *>*> *)queryOneYearBloodOxygenWithYear:(NSInteger)year | ||
| 109 | macAddr:(NSString *)macAddr | ||
| 110 | isQueryItems:(BOOL)isQuery; | ||
| 111 | |||
| 112 | /** | ||
| 113 | * @brief 查询当前设备某月份的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加) | ||
| 114 | * 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, | ||
| 115 | * which is larger than the data of the day) | ||
| 116 | * @param year 年 (如 : 2018) | Year (eg: 2018) | ||
| 117 | * @param month 月 (如 : 9) | Month (eg: 9) | ||
| 118 | * @param macAddr mac 地址 | mac address | ||
| 119 | * @param dates 当前查询月份的所有日期集合的指针 (格式 :[10/01...10/31]) | ||
| 120 | * Pointer to all date collections for the current query month (format: [10/01...10/31]) | ||
| 121 | * @param isQuery 是否查询items | is query items | ||
| 122 | * @return 一个月的血氧数据集合,其中IDOSyncBloodOxygenDataInfoBluetoothModel对象是一天总血氧数据模型 | ||
| 123 | * A one-month blood oxygen data collection, where the IDOSyncHrDataInfoBluetoothModel object is the total blood oxygen data model for the day | ||
| 124 | */ | ||
| 125 | + (NSArray <__kindof IDOSyncBloodOxygenDataInfoBluetoothModel *>*)queryOneMonthBloodOxygenWithYear:(NSInteger)year | ||
| 126 | month:(NSInteger)month | ||
| 127 | macAddr:(NSString *)macAddr | ||
| 128 | datesOfMonth:(NSArray <NSString *>**)dates | ||
| 129 | isQueryItems:(BOOL)isQuery; | ||
| 130 | |||
| 131 | /** | ||
| 132 | * @brief 查询当前设备某周的所有数据 (如果查询当天无数据,会创建空的数据对象,大于当天的数据不累加) | ||
| 133 | * 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, | ||
| 134 | * and the data larger than the current day will not be accumulated) | ||
| 135 | * @param weekIndex 周的查询索引 (0 : 当周, 1 : 上一周, 2 : 上两周 ...) | Week's query index (0: week, 1 : last week, 2 : last two weeks...) | ||
| 136 | * @param weekStartDay 星期的开始日 (0 : 星期日, 1 : 星期一, 2 : 星期二 ...) | Start of the week (0: Sunday, 1 : Monday, 2 : Tuesday ...) | ||
| 137 | * @param macAddr mac 地址 | mac address | ||
| 138 | * @param dates 当前查询周的所有日期集合的指针 (格式 :[10/01...10/07]) | ||
| 139 | * Pointer to all date collections for the current query week (format: [10/01...10/07]) | ||
| 140 | * @param isQuery 是否查询items | is query items | ||
| 141 | * @return 一周的血氧数据集合,其中IDOSyncBloodOxygenDataInfoBluetoothModel对象是一天总血氧数据模型 | ||
| 142 | * A week's blood oxygen data collection, where the IDOSyncBloodOxygenDataInfoBluetoothModel object is the total blood oxygen data model for the day | ||
| 143 | */ | ||
| 144 | + (NSArray <__kindof IDOSyncBloodOxygenDataInfoBluetoothModel *>*)queryOneWeekBloodOxygenWithWeekIndex:(NSInteger)weekIndex | ||
| 145 | weekStartDay:(NSInteger)weekStartDay | ||
| 146 | macAddr:(NSString *)macAddr | ||
| 147 | datesOfWeek:(NSArray <NSString *>**)dates | ||
| 148 | isQueryItems:(BOOL)isQuery; | ||
| 149 | |||
| 150 | /** | ||
| 151 | * @brief 查询当前设备某天血氧数据并有详情数据 | ||
| 152 | * Query current blood oxygen data of the current device and have detailed data | ||
| 153 | * @param macAddr mac 地址 | mac address | ||
| 154 | * @param year 年份 | year | ||
| 155 | * @param month 月份 | month | ||
| 156 | * @param day 日期 | day | ||
| 157 | * @return 一天血氧数据的集合和详情数据结合 | Collection of day blood oxygen data and details data | ||
| 158 | */ | ||
| 159 | + (NSArray <__kindof IDOSyncBloodOxygenDataInfoBluetoothModel *>*)queryOneDayBloodOxygenDetailWithMac:(NSString *)macAddr | ||
| 160 | year:(NSInteger)year | ||
| 161 | month:(NSInteger)month | ||
| 162 | day:(NSInteger)day; | ||
| 163 | |||
| 164 | /** | ||
| 165 | * @brief 查询所有血氧数据,血氧包个数大于0 | ||
| 166 | * Query all blood oxygen data The number of blood oxygen packets is greater than 0 | ||
| 167 | * @param macAddr mac地址 | mac address | ||
| 168 | * @return 所有血氧数据的集合和详情数据(不包括当天数据) | ||
| 169 | * Collection of all blood oxygen data and details data | ||
| 170 | */ | ||
| 171 | + (NSArray <__kindof IDOSyncBloodOxygenDataInfoBluetoothModel *>*)queryAllBloodOxygensWithMac:(NSString *)macAddr; | ||
| 172 | |||
| 173 | |||
| 174 | @end | ||
| 175 | |||
