diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1SProfileModule.m')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1SProfileModule.m | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1SProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1SProfileModule.m new file mode 100644 index 0000000..a3f153b --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1SProfileModule.m | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | // | ||
| 2 | // BG1SProfileModule.m | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by user on 2019/11/14. | ||
| 6 | // Copyright © 2019 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "BG1SProfileModule.h" | ||
| 10 | |||
| 11 | @implementation BG1SProfileModule | ||
| 12 | |||
| 13 | RCT_EXPORT_MODULE() | ||
| 14 | |||
| 15 | #pragma mark | ||
| 16 | #pragma mark - constantsToExport | ||
| 17 | |||
| 18 | |||
| 19 | - (NSDictionary *)constantsToExport | ||
| 20 | { | ||
| 21 | return @{ | ||
| 22 | BG1S_ACTION:BG1S_ACTION, | ||
| 23 | BG1S_DEVICE:BG1S_DEVICE, | ||
| 24 | BG1S_KEY_MAC:BG1S_KEY_MAC, | ||
| 25 | BG1S_TYPE:BG1S_TYPE, | ||
| 26 | OPERATION_DESCRIBE:OPERATION_DESCRIBE, | ||
| 27 | STRIP_INSERTION_STATUS:STRIP_INSERTION_STATUS, | ||
| 28 | kACTION_GET_ALL_CONNECTED_DEVICES:kACTION_GET_ALL_CONNECTED_DEVICES, | ||
| 29 | @"ACTION_STRIP_INSERTION_STATUS" :ACTION_STRIP_INSERTION_STATUS, | ||
| 30 | @"ACTION_GET_BLOOD" :ACTION_GET_BLOOD, | ||
| 31 | @"ACTION_MEASURE_RESULT" :ACTION_MEASURE_RESULT, | ||
| 32 | @"ACTION_CODE_ANALYSIS" :ACTION_CODE_ANALYSIS, | ||
| 33 | @"INFO_BATTERY_BG1S" :INFO_BATTERY_BG1S, | ||
| 34 | @"INFO_VERSION_CODE_BLOOD_BG1S" :INFO_VERSION_CODE_BLOOD_BG1S, | ||
| 35 | @"INFO_VERSION_CODE_CTL_BG1S" :INFO_VERSION_CODE_CTL_BG1S, | ||
| 36 | @"ACTION_ERROR_BG1S" :ACTION_ERROR_BG1S, | ||
| 37 | @"ERROR_NUM_BG1S" :ERROR_NUM_BG1S, | ||
| 38 | @"ERROR_DESCRIPTION_BG1S" :ERROR_DESCRIPTION_BG1S, | ||
| 39 | @"MEASURE_RESULT" :MEASURE_RESULT, | ||
| 40 | @"MEASURE_MODE" :MEASURE_MODE | ||
| 41 | }; | ||
| 42 | }; | ||
| 43 | |||
| 44 | |||
| 45 | + (BOOL)requiresMainQueueSetup | ||
| 46 | { | ||
| 47 | return YES; | ||
| 48 | } | ||
| 49 | |||
| 50 | @end | ||
