diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BGProfileModule.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BGProfileModule.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BGProfileModule.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BGProfileModule.h new file mode 100755 index 0000000..0c6f3b0 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BGProfileModule.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | // | ||
| 2 | // BGProfileModule.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/RCTAssert.h>) | ||
| 11 | #import <React/RCTBridgeModule.h> | ||
| 12 | #else | ||
| 13 | #import "RCTBridgeModule.h" | ||
| 14 | #endif | ||
| 15 | |||
| 16 | |||
| 17 | // Commom in BG5Module.js & BG5LModule.js | ||
| 18 | #define kACTION_ERROR_BG @"ACTION_ERROR_BG" | ||
| 19 | #define kACTION_KEEP_LINK @"ACTION_KEEP_LINK" | ||
| 20 | #define kACTION_SET_TIME @"ACTION_SET_TIME" | ||
| 21 | #define kACTION_SET_UNIT @"ACTION_SET_UNIT" | ||
| 22 | #define kACTION_GET_BATTERY @"ACTION_GET_BATTERY" | ||
| 23 | #define kACTION_START_MEASURE @"ACTION_START_MEASURE" | ||
| 24 | #define kACTION_GET_OFFLINEDATA_COUNT @"ACTION_GET_OFFLINEDATA_COUNT" | ||
| 25 | #define kACTION_GET_OFFLINEDATA @"ACTION_GET_OFFLINEDATA" | ||
| 26 | #define kACTION_DELETE_OFFLINEDATA @"ACTION_DELETE_OFFLINEDATA" | ||
| 27 | #define kACTION_SET_BOTTLEMESSAGE @"ACTION_SET_BOTTLEMESSAGE" | ||
| 28 | #define kACTION_GET_BOTTLEMESSAGE @"ACTION_GET_BOTTLEMESSAGE" | ||
| 29 | #define kACTION_SET_BOTTLEID @"ACTION_SET_BOTTLEID" | ||
| 30 | #define kACTION_GET_BOTTLEID @"ACTION_GET_BOTTLEID" | ||
| 31 | #define kACTION_STRIP_IN @"ACTION_STRIP_IN" | ||
| 32 | #define kACTION_STRIP_OUT @"ACTION_STRIP_OUT" | ||
| 33 | #define kACTION_GET_BLOOD @"ACTION_GET_BLOOD" | ||
| 34 | #define kACTION_ONLINE_RESULT_BG @"ACTION_ONLINE_RESULT_BG" | ||
| 35 | #define kACTION_CODE_ANALYSIS @"ACTION_CODE_ANALYSIS" | ||
| 36 | #define kACTION_GET_ALL_CONNECTED_DEVICES @"ACTION_GET_ALL_CONNECTED_DEVICES" | ||
| 37 | |||
| 38 | #define kERROR_NUM_BG @"ERROR_NUM_BG" | ||
| 39 | #define kERROR_DESCRIPTION_BG @"ERROR_DESCRIPTION_BG" | ||
| 40 | #define kGET_BATTERY @"GET_BATTERY" | ||
| 41 | #define kGET_OFFLINEDATA_COUNT @"GET_OFFLINEDATA_COUNT" | ||
| 42 | #define kGET_OFFLINEDATA @"GET_OFFLINEDATA" | ||
| 43 | #define kSET_BOTTLEMESSAGE @"SET_BOTTLEMESSAGE" | ||
| 44 | #define kSTART_MODE @"START_MODE" | ||
| 45 | #define kGET_EXPIRECTIME @"GET_EXPIRECTIME" | ||
| 46 | #define kGET_USENUM @"GET_USENUM" | ||
| 47 | #define kGET_BOTTLEID @"GET_BOTTLEID" | ||
| 48 | #define kONLINE_RESULT_BG @"ONLINE_RESULT_BG" | ||
| 49 | #define kDATA_ID @"DATA_ID" | ||
| 50 | #define kSTRIP_NUM_BG @"STRIP_NUM_BG" | ||
| 51 | #define kSTRIP_EXPIRETIME_BG @"STRIP_EXPIRETIME_BG" | ||
| 52 | #define kBOTTLEID_BG @"BOTTLEID_BG" | ||
| 53 | |||
| 54 | typedef NS_ENUM(NSInteger,RNBGError) { | ||
| 55 | RNBGError_Unknown = -1, | ||
| 56 | RNBGError_InputParameterError = 400, | ||
| 57 | RNBGError_FunctionCallOrderError = 402, | ||
| 58 | RNBGError_MeasureModeNotMatched = 403, | ||
| 59 | RNBGError_DisconnectFunctionNotSupportIniOSPlatform = 404, // only for BG5 | ||
| 60 | RNBGError_getBottleInfoFromQRFunctionInpurParameterError = 405, | ||
| 61 | }; | ||
| 62 | |||
| 63 | @interface BGProfileModule : NSObject<RCTBridgeModule> | ||
| 64 | |||
| 65 | @end | ||
