diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/NT13BProfileModule.m')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/NT13BProfileModule.m | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/NT13BProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/NT13BProfileModule.m new file mode 100644 index 0000000..558d2dd --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/NT13BProfileModule.m | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | // | ||
| 2 | // NT13BProfileModule.m | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by user on 2019/11/14. | ||
| 6 | // Copyright © 2019 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "NT13BProfileModule.h" | ||
| 10 | |||
| 11 | @implementation NT13BProfileModule | ||
| 12 | |||
| 13 | RCT_EXPORT_MODULE() | ||
| 14 | |||
| 15 | #pragma mark | ||
| 16 | #pragma mark - constantsToExport | ||
| 17 | |||
| 18 | |||
| 19 | - (NSDictionary *)constantsToExport | ||
| 20 | { | ||
| 21 | return @{ | ||
| 22 | @"ACTION_MEASUREMENT_RESULT":@"action_measurement_result", | ||
| 23 | NT13B_ACTION:@"action", | ||
| 24 | NT13B_DEVICE:@"device", | ||
| 25 | NT13B_KEY_MAC:@"mac", | ||
| 26 | kACTION_GET_ALL_CONNECTED_DEVICES:kACTION_GET_ALL_CONNECTED_DEVICES, | ||
| 27 | NT13B_RESULT:@"result", | ||
| 28 | NT13B_UNIT_FLAG:@"unit_flag", | ||
| 29 | NT13B_THERMOMETER_TYPE:@"thermometer_type" | ||
| 30 | }; | ||
| 31 | }; | ||
| 32 | |||
| 33 | |||
| 34 | + (BOOL)requiresMainQueueSetup | ||
| 35 | { | ||
| 36 | return YES; | ||
| 37 | } | ||
| 38 | |||
| 39 | @end | ||
