diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWeightBluetoothModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWeightBluetoothModel.h | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWeightBluetoothModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWeightBluetoothModel.h new file mode 100755 index 0000000..8b0fc1b --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWeightBluetoothModel.h | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | // | ||
| 2 | // IDOWeightBluetoothModel.h | ||
| 3 | // IDOBluetooth | ||
| 4 | // | ||
| 5 | // Created by 何东阳 on 2018/10/27. | ||
| 6 | // Copyright © 2018年 apple. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>) | ||
| 10 | #elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>) | ||
| 11 | #else | ||
| 12 | #import "IDOBluetoothBaseModel.h" | ||
| 13 | #endif | ||
| 14 | |||
| 15 | @interface IDOWeightBluetoothModel : IDOBluetoothBaseModel | ||
| 16 | |||
| 17 | /** | ||
| 18 | 年份 | Year | ||
| 19 | */ | ||
| 20 | @property (nonatomic,assign) NSInteger year; | ||
| 21 | |||
| 22 | /** | ||
| 23 | 月份 | Month | ||
| 24 | */ | ||
| 25 | @property (nonatomic,assign) NSInteger month; | ||
| 26 | |||
| 27 | /** | ||
| 28 | 日期 | Date | ||
| 29 | */ | ||
| 30 | @property (nonatomic,assign) NSInteger day; | ||
| 31 | |||
| 32 | /* | ||
| 33 | * 日期时间戳 time interval since 1970 (如:1444361933) | ||
| 34 | * Date Timestamp time interval since 1970 (eg 14442361933) | ||
| 35 | */ | ||
| 36 | @property (nonatomic,copy) NSString * dateStr; | ||
| 37 | |||
| 38 | /* | ||
| 39 | * 时间戳 time interval since 1970 (如:1444361933) | ||
| 40 | * Timestamp time interval since 1970 (eg: 14443361933) | ||
| 41 | */ | ||
| 42 | @property (nonatomic,copy) NSString * timeStamp; | ||
| 43 | |||
| 44 | /* | ||
| 45 | 体重值 | Weight value | ||
| 46 | */ | ||
| 47 | @property (nonatomic,copy) NSString * weightValue; | ||
| 48 | |||
| 49 | /* | ||
| 50 | 体重单位 0是磅 1是公斤 | Weight unit 0 is pound 1 is kg | ||
| 51 | */ | ||
| 52 | @property (nonatomic,copy) NSString * weightUnit; | ||
| 53 | |||
| 54 | /* | ||
| 55 | 最后一次记录的体重单位 0是磅 1是公斤 | Last recorded weight unit 0 is pound 1 is kg | ||
| 56 | */ | ||
| 57 | @property (nonatomic,copy) NSString * lastWeightUnit; | ||
| 58 | |||
| 59 | /* | ||
| 60 | 最后一次记录的体重 | Last recorded weight | ||
| 61 | */ | ||
| 62 | @property (nonatomic,copy) NSString * lastWeightValue; | ||
| 63 | |||
| 64 | /* | ||
| 65 | 手动输入? | Manual input | ||
| 66 | */ | ||
| 67 | @property (nonatomic,assign) BOOL isHandsRecord; | ||
| 68 | |||
| 69 | /* | ||
| 70 | BMI | ||
| 71 | */ | ||
| 72 | @property (nonatomic,copy) NSString * bmi; | ||
| 73 | |||
| 74 | /* | ||
| 75 | 体脂率 | Body fat rate | ||
| 76 | */ | ||
| 77 | @property (nonatomic,copy) NSString * bodyFat; | ||
| 78 | |||
| 79 | /* | ||
| 80 | 内脏脂肪 | Visceral fat | ||
| 81 | */ | ||
| 82 | @property (nonatomic,copy) NSString * visFat; | ||
| 83 | |||
| 84 | /* | ||
| 85 | 体水分 | Body water | ||
| 86 | */ | ||
| 87 | @property (nonatomic,copy) NSString * water; | ||
| 88 | |||
| 89 | /* | ||
| 90 | 蛋白质 | Protein | ||
| 91 | */ | ||
| 92 | @property (nonatomic,copy) NSString * protein; | ||
| 93 | |||
| 94 | /* | ||
| 95 | 骨量 | Bone mass | ||
| 96 | */ | ||
| 97 | @property (nonatomic,copy) NSString * bone; | ||
| 98 | |||
| 99 | /** | ||
| 100 | * @brief 查询数据库,如果查询不到初始化新的model对象 | ||
| 101 | * Query the database, if the query does not initialize a new model object | ||
| 102 | * @return IDOUserWeightModel | ||
| 103 | */ | ||
| 104 | + (__kindof IDOWeightBluetoothModel *)currentModel; | ||
| 105 | |||
| 106 | /** | ||
| 107 | * @brief 查询指定日期前七次体重数据,如果没有数据会初始化体重为0的数据对象 | ||
| 108 | * Query the weight data seven times before the specified date, if there is no data, initialize the data object with weight 0 | ||
| 109 | * @return IDOUserWeightModel | ||
| 110 | */ | ||
| 111 | + (NSArray <__kindof IDOWeightBluetoothModel *>*)querySevenTimesRecentlyWithDateStr:(NSString *)dateStr; | ||
| 112 | |||
| 113 | /** | ||
| 114 | * @brief 查询当前设备某天体重详情数据 | Query current device weight data for one day | ||
| 115 | * @param year 年份 | year | ||
| 116 | * @param month 月份 | month | ||
| 117 | * @param day 日期 | day | ||
| 118 | * @return 体重详情数据 | Weight details data | ||
| 119 | */ | ||
| 120 | + (__kindof IDOWeightBluetoothModel *)queryOneDayDataWithYear:(NSInteger)year | ||
| 121 | month:(NSInteger)month | ||
| 122 | day:(NSInteger)day; | ||
| 123 | |||
| 124 | @end | ||
