diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h new file mode 100755 index 0000000..5fa5fd4 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | // | ||
| 2 | // BPProfileModule.h | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 2016/11/23. | ||
| 6 | // Copyright © 2016年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #if __has_include(<React/RCTEventEmitter.h>) | ||
| 11 | #import <React/RCTEventEmitter.h> | ||
| 12 | #else | ||
| 13 | #import "RCTEventEmitter.h" | ||
| 14 | #endif | ||
| 15 | @interface BPProfileModule : NSObject<RCTBridgeModule> | ||
| 16 | |||
| 17 | #define kACTION_ERROR_BP @"error_bp" | ||
| 18 | #define kERROR_DESCRIPTION_BP @"description" | ||
| 19 | #define kACTION_BATTERY_BP @"battery_bp" | ||
| 20 | #define kACTION_ZOREING_BP @"zoreing_bp" | ||
| 21 | #define kACTION_ZOREOVER_BP @"zoreover_bp" | ||
| 22 | #define kACTION_ONLINE_PRESSURE_BP @"online_pressure_bp" | ||
| 23 | #define kACTION_ONLINE_PULSEWAVE_BP @"online_pulsewave_bp" | ||
| 24 | #define kACTION_ONLINE_RESULT_BP @"online_result_bp" | ||
| 25 | #define kACTION_HISTORICAL_NUM_BP @"offlinenum" | ||
| 26 | #define kACTION_HISTORICAL_DATA_BP @"historicaldata_bp" | ||
| 27 | #define kACTION_HISTORICAL_OVER_BP @"get_historical_over_bp" | ||
| 28 | #define kACTION_FUNCTION_INFORMATION_BP @"function_info_bp" | ||
| 29 | #define kACTION_SET_UNIT_SUCCESS_BP @"set_unit_success" | ||
| 30 | #define kACTION_SET_ANGLE_SUCCESS_BP @"set_angle_success" | ||
| 31 | #define kACTION_INTERRUPTED_BP @"interrupted_bp" | ||
| 32 | #define kACTION_Delete_BP @"delete_bp" | ||
| 33 | |||
| 34 | |||
| 35 | #define kACTION_ENABLE_OFFLINE_BP @"enable_offline_bp" | ||
| 36 | #define kACTION_DISENABLE_OFFLINE_BP @"disenable_offline_bp" | ||
| 37 | #define kACTION_IS_ENABLE_OFFLINE @"offlinestatus" | ||
| 38 | |||
| 39 | #define kMessage @"Message" | ||
| 40 | #define kIDPS @"idps" | ||
| 41 | #define kACTION @"action" | ||
| 42 | #define kERROR_NUM_BP @"error" | ||
| 43 | #define kBATTERY_BP @"battery" | ||
| 44 | #define kBLOOD_PRESSURE_BP @"pressure" | ||
| 45 | #define kFLAG_HEARTBEAT_BP @"heartbeat" | ||
| 46 | #define kPULSEWAVE_BP @"wave" | ||
| 47 | #define kHIGH_BLOOD_PRESSURE_BP @"sys" | ||
| 48 | #define kLOW_BLOOD_PRESSURE_BP @"dia" | ||
| 49 | #define kPULSE_BP @"heartRate" | ||
| 50 | #define kMEASUREMENT_DATE_BP @"date" | ||
| 51 | #define kMEASUREMENT_AHR_BP @"arrhythmia" | ||
| 52 | #define kMEASUREMENT_HSD_BP @"hsd" | ||
| 53 | #define kMEASUREMENT_STRAT_ANGLE_BP @"startAngle" | ||
| 54 | #define kMEASUREMENT_ANGLE_CHANGE_BP @"measureAngleChange" | ||
| 55 | #define kMEASUREMENT_HAND_BP @"chooseHand" | ||
| 56 | #define kDATAID @"dataID" | ||
| 57 | #define kHISTORICAL_NUM_BP @"offlinenum" | ||
| 58 | #define kHISTORICAL_DATA_BP @"data" | ||
| 59 | #define kIS_ENABLE_OFFLINE @"offlinestatus" | ||
| 60 | |||
| 61 | #define kFUNCTION_IS_UPAIR_MEASURE @"upAirMeasureFlg" | ||
| 62 | #define kFUNCTION_IS_ARM_MEASURE @"armMeasureFlg" | ||
| 63 | #define kFUNCTION_HAVE_ANGLE_SENSOR @"haveAngleSensor" | ||
| 64 | #define kFUNCTION_HAVE_OFFLINE @"haveOffline" | ||
| 65 | #define kFUNCTION_HAVE_ANGLE_SETTING @"haveAngleSet" | ||
| 66 | #define kFUNCTION_IS_MULTI_UPLOAD @"mutableUpload" | ||
| 67 | #define kFUNCTION_HAVE_SELF_UPDATE @"selfUpdate" | ||
| 68 | #define kFUNCTION_HAVE_HSD @"haveHSD" | ||
| 69 | |||
| 70 | #define kANGLE_BP @"angle" | ||
| 71 | |||
| 72 | #define kWHICH_ARM @"which_arm" | ||
| 73 | |||
| 74 | #define kACTION_ANGLE_BP @"angle_bp" | ||
| 75 | |||
| 76 | #define kMAC @"mac" | ||
| 77 | #define kType @"type" | ||
| 78 | |||
| 79 | |||
| 80 | + (void)sendErrorToEmitter:(RCTEventEmitter *)emitter eventNotify:(NSString*)eventNotify WithCode:(NSInteger)errorCode; | ||
| 81 | + (void)sendEventToEmitter:(RCTEventEmitter *)emitter eventNotify:(NSString*)eventNotify WithDict:(NSDictionary*)dict; | ||
| 82 | |||
| 83 | @end | ||
