summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1ProfileModule.m
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1ProfileModule.m')
-rwxr-xr-xlibs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1ProfileModule.m84
1 files changed, 84 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1ProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1ProfileModule.m
new file mode 100755
index 0000000..c7410a0
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BG1ProfileModule.m
@@ -0,0 +1,84 @@
1//
2// BG1ProfileModule.m
3// ReactNativeIOSLibrary
4//
5// Created by daiqingquan on 2016/11/23.
6// Copyright © 2016年 daiqingquan. All rights reserved.
7//
8
9#import "BG1ProfileModule.h"
10
11@implementation BG1ProfileModule
12
13
14RCT_EXPORT_MODULE()
15
16#pragma mark
17#pragma mark - constantsToExport
18
19
20- (NSDictionary *)constantsToExport
21{
22 return @{
23
24 @"ACTION_ERROR_BG":@"action_measure_error",
25 @"ACTION_GET_BATTERY":@"action_battery_bg",
26 @"ACTION_KEEP_LINK":@"action_keep_link",
27 @"ACTION_SET_TIME":@"action_set_time",
28 @"ACTION_SET_UNIT":@"action_set_unit",
29 @"ACTION_START_MEASURE":@"action_start_measure",
30 @"ACTION_GET_OFFLINEDATA_COUNT":@"action_historicalnum_bg",
31 @"ACTION_GET_OFFLINEDATA":@"action_historicaldata_bg",
32 @"ACTION_DELETE_OFFLINEDATA":@"action_delete_historical_data",
33 @"ACTION_SET_BOTTLEMESSAGE":@"action_set_bottle_message_success",
34 @"ACTION_GET_BOTTLEMESSAGE":@"action_get_codeinfo",
35 @"ACTION_SET_BOTTLEID":@"action_set_bottle_message_success",
36 @"ACTION_GET_BOTTLEID":@"action_get_bottleid",
37
38 @"ACTION_BG1_SENDCODE_RESULT":@"action_sendcode_result_for_bg1",
39 @"ACTION_BG1_MEASURE_ERROR":@"action_measure_error_for_bg1",
40 @"ACTION_BG1_MEASURE_STRIP_IN":@"action_measure_strip_in_for_bg1",
41 @"ACTION_BG1_MEASURE_GET_BLOOD":@"action_measure_get_blood_for_bg1",
42 @"ACTION_BG1_MEASURE_RESULT":@"action_measure_result_for_bg1",
43 @"ACTION_BG1_MEASURE_STRIP_OUT":@"action_measure_strip_out_for_bg1",
44 @"ACTION_BG1_MEASURE_STANDBY":@"action_measure_standby_for_bg1",
45 @"ACTION_CODE_ANALYSIS":@"action_code_analysis_bg",
46
47
48 @"BG1_SENDCODE_RESULT":@"sendcode_result_for_bg1",
49 @"BG1_MEASURE_ERROR":@"action_measure_error_for_bg1",
50 @"BG1_MEASURE_RESULT":@"measure_result_for_bg1",
51 @"DATA_ID":@"dataID",
52
53 @"STRIP_NUM_BG":@"stripNum",
54 @"STRIP_EXPIRETIME_BG":@"overDate",
55 @"BOTTLEID_BG":@"bottleId",
56
57
58 @"ERROR_NUM_BG":@"error",
59 @"GET_BATTERY":@"battery",
60 @"KEEP_LINK":@"keep_link",
61 @"SET_TIME":@"set_time",
62 @"SET_UNIT":@"set_unit",
63 @"START_MEASURE":@"start_measure",
64 @"GET_OFFLINEDATA_COUNT":@"count",
65 @"GET_OFFLINEDATA":@"his_data_bg",
66 @"DELETE_OFFLINEDATA":@"delete_historical_data",
67 @"GET_USENUM":@"usenum",
68 @"SET_BOTTLEMESSAGE":@"set_bottle_message",
69 @"GET_BOTTLEID":@"bottleid",
70 @"SET_BOTTLEID":@"set_bottle_message"
71
72
73
74
75 };
76};
77
78+ (BOOL)requiresMainQueueSetup
79{
80 return YES;
81}
82
83
84@end