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/IDOBluetoothBaseModel.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothBaseModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothBaseModel.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothBaseModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothBaseModel.h new file mode 100755 index 0000000..4d9ffbe --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothBaseModel.h | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | // | ||
| 2 | // IDOBluetoothInfo.h | ||
| 3 | // VeryfitSDK | ||
| 4 | // | ||
| 5 | // Created by hedongyang on 2018/6/13. | ||
| 6 | // Copyright © 2018年 hedongyang. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | |||
| 11 | @interface IDOBluetoothBaseModel : NSObject | ||
| 12 | |||
| 13 | @property (copy,readonly,nonatomic,nullable) NSArray<NSString *> * originColumnNames; | ||
| 14 | @property (copy,readonly,nonatomic,nullable) NSArray<NSString *> * columnNames; | ||
| 15 | @property (copy,readonly,nonatomic,nullable) NSArray<NSString *> * columnTypes; | ||
| 16 | |||
| 17 | @property (nonatomic,assign) NSInteger pk; | ||
| 18 | |||
| 19 | @property (nonatomic,copy,nullable) NSString * macAddr; | ||
| 20 | @property (nonatomic,copy,nullable) NSString * uuidStr; | ||
| 21 | @property (nonatomic,copy,nullable) NSString * deviceId; | ||
| 22 | @property (nonatomic,copy,nullable) NSString * version; | ||
| 23 | @property (nonatomic,copy,nullable) NSString * deviceName; | ||
| 24 | @property (nonatomic,copy,nullable) NSString * userId; | ||
| 25 | @property (nonatomic,assign) NSInteger migrationState; | ||
| 26 | |||
| 27 | /** | ||
| 28 | * @brief 数据引擎为model赋值 | Assigned to the model | ||
| 29 | */ | ||
| 30 | - (void)assignment; | ||
| 31 | |||
| 32 | /** | ||
| 33 | * @brief model创建表 | Create a table | ||
| 34 | * @return 是 或 否 | yes or no | ||
| 35 | */ | ||
| 36 | - (BOOL)createTable; | ||
| 37 | |||
| 38 | /** | ||
| 39 | * @brief model 单个数据存储 | Single data storage | ||
| 40 | * @return 是 或 否 | yes or no | ||
| 41 | */ | ||
| 42 | - (BOOL)save; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * @brief model 单个数据更新 | Single data update | ||
| 46 | * @return 是 或 否 | yes or no | ||
| 47 | */ | ||
| 48 | - (BOOL)update; | ||
| 49 | |||
| 50 | /** | ||
| 51 | * @brief model 单个数据存储或更新 | Single data storage or update | ||
| 52 | * @return 是 或 否 | yes or no | ||
| 53 | */ | ||
| 54 | - (BOOL)saveOrUpdate; | ||
| 55 | |||
| 56 | /** | ||
| 57 | * @brief model 单个数据删除 (*不建议使用) | Model single data deletion (*Not recommended) | ||
| 58 | * @return 是 或 否 | yes or no | ||
| 59 | */ | ||
| 60 | - (BOOL)del; | ||
| 61 | |||
| 62 | /** | ||
| 63 | * @brief model 通过Mac地址查询单个数据 多用于蓝牙设置查询 | ||
| 64 | * The model queries individual data by Mac address, which is mostly used for bluetooth setting query | ||
| 65 | * @return 根据设备ID 查询获取最后一个model 不存在会初始化一个新的对象 | ||
| 66 | * Getting the last model based on the device ID query does not initialize a new object | ||
| 67 | */ | ||
| 68 | + (IDOBluetoothBaseModel *_Nullable)queryCurrentModel; | ||
| 69 | |||
| 70 | /** | ||
| 71 | * @brief 自定义查询语句 | Custom query statements | ||
| 72 | * @param sqlStr 查询语句 | Database query for example @"WHERE mac_addr = '%@'" | ||
| 73 | * @return model 集合 | Array | ||
| 74 | */ | ||
| 75 | + (NSArray <IDOBluetoothBaseModel *>*_Nullable)queryModelsWithSqlStr:(NSString *_Nullable)sqlStr; | ||
| 76 | |||
| 77 | /** | ||
| 78 | * @brief 自定义删除语句 | Custom delete statement | ||
| 79 | * @param sqlStr 删除语句 | Delete sqlStr for example @"WHERE mac_addr = '%@'" | ||
| 80 | * @return yes or no | ||
| 81 | */ | ||
| 82 | + (BOOL)deleteModelsWithSqlStr:(NSString *_Nullable)sqlStr; | ||
| 83 | |||
| 84 | /** | ||
| 85 | * @brief 批量存储或更新model | Bulk store or update models | ||
| 86 | * @param models model 集合 | Array | ||
| 87 | * @return 是 或 否 | yes or no | ||
| 88 | */ | ||
| 89 | |||
| 90 | + (BOOL)saveOrUpdateModels:(NSArray <IDOBluetoothBaseModel *>*_Nullable)models; | ||
| 91 | |||
| 92 | /** | ||
| 93 | * @brief 批量存储model | Bulk store models | ||
| 94 | * @param models model 集合 | Array | ||
| 95 | * @return 是 或 否 | yes or no | ||
| 96 | */ | ||
| 97 | + (BOOL)saveModels:(NSArray <IDOBluetoothBaseModel *>*_Nullable)models; | ||
| 98 | |||
| 99 | /** | ||
| 100 | * @brief 批量删除model (*不建议使用) | Delete models in bulk (*Not recommended) | ||
| 101 | * @param models model 集合 | Array | ||
| 102 | * @return 是 或 否 | yes or no | ||
| 103 | */ | ||
| 104 | + (BOOL)deleteModels:(NSArray <IDOBluetoothBaseModel *>*_Nullable)models; | ||
| 105 | |||
| 106 | /** | ||
| 107 | * @brief 删除对应的数据库表数据 (*不建议使用) | Delete the corresponding database table data (*Not recommended) | ||
| 108 | * @return 是 或 否 | yes or no | ||
| 109 | */ | ||
| 110 | + (BOOL)deleteCurrentTable; | ||
| 111 | |||
| 112 | @end | ||
