diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m new file mode 100755 index 0000000..fee17dc --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | // | ||
| 2 | // POProfileModule.m | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 2016/12/4. | ||
| 6 | // Copyright © 2016年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "PO1ProfileModule.h" | ||
| 10 | |||
| 11 | @implementation PO1ProfileModule | ||
| 12 | |||
| 13 | |||
| 14 | RCT_EXPORT_MODULE() | ||
| 15 | |||
| 16 | #pragma mark | ||
| 17 | #pragma mark - constantsToExport | ||
| 18 | |||
| 19 | |||
| 20 | - (NSDictionary *)constantsToExport | ||
| 21 | { | ||
| 22 | return @{ | ||
| 23 | @"ACTION_GET_BATTERY":@"ACTION_GET_BATTERY", | ||
| 24 | |||
| 25 | @"ACTION_BO_MEASUREMENT":@"ACTION_BO_MEASUREMENT", | ||
| 26 | |||
| 27 | @"ACTION_ERROR_PO1":@"ACTION_ERROR_PO1", | ||
| 28 | |||
| 29 | @"ACTION_GET_ALL_CONNECTED_DEVICES":@"ACTION_GET_ALL_CONNECTED_DEVICES", | ||
| 30 | |||
| 31 | @"BATTERY":@"BATTERY", | ||
| 32 | |||
| 33 | @"ERROR_DESCRIPTION":@"ERROR_DESCRIPTION", | ||
| 34 | |||
| 35 | @"ERROR_ID":@"ERROR_ID", | ||
| 36 | |||
| 37 | @"STATUS":@"STATUS", | ||
| 38 | |||
| 39 | @"BLOOD_OXYGEN":@"BLOOD_OXYGEN", | ||
| 40 | |||
| 41 | @"PULSE":@"PULSE", | ||
| 42 | |||
| 43 | @"PULSE_FORCE":@"PULSE_FORCE", | ||
| 44 | |||
| 45 | @"PI":@"PI", | ||
| 46 | |||
| 47 | @"WAVE":@"WAVE", | ||
| 48 | |||
| 49 | }; | ||
| 50 | }; | ||
| 51 | |||
| 52 | |||
| 53 | + (BOOL)requiresMainQueueSetup | ||
| 54 | { | ||
| 55 | return YES; | ||
| 56 | } | ||
| 57 | |||
| 58 | @end | ||
