summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/HS2SProfileModule.h
blob: 07862b4a293dd02e017c718703457da13e78f410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
//
//  HSProfileModule.h
//  ReactNativeIOSLibrary
//
//  Created by ihealth on 16/12/2.
//  Copyright © 2016年 daiqingquan. All rights reserved.
//

#import <Foundation/Foundation.h>
#if __has_include(<React/RCTAssert.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif

@interface HS2SProfileModule : NSObject<RCTBridgeModule>

#define ACTION_LIVEDATA_HS  @"liveData_hs"
#define LIVEDATA_HS  @"value"

#define ACTION_ONLINE_RESULT_HS  @"online_result_hs"
#define DATAID @"dataID"
#define WEIGHT_HS  @"value"
#define FAT_HS  @""
#define WATER_HS  @""
#define MUSCLE_HS  @""
#define SKELETON_HS  @""
#define FATELEVEL_HS  @""
#define DCI_HS  @""

#define ACTION_GET_ALL_CONNECTED_DEVICES @"action_get_all_connected_devices"
#define ACTION_HISTORICAL_DATA_HS  @"historicaldata_hs"
#define HISTORDATA_HS  @"historyData"
#define MEASUREMENT_DATE_HS  @"date"
#define ACTION_HISTORICAL_DATA_COMPLETE_HS @"finishTranslate"
#define ACTION_NO_HISTORICALDATA  @"noHistoryData"
#define BATTERY_HS @"battery_hs"
#define ACTION_BATTARY_HS  @"action_get_battery_hs"
#define ACTION_ERROR_HS  @"error_hs"
#define ERROR_NUM_HS  @"error"
#define ERROR_ID_ILLEGAL_ARGUMENT  @"400"
#define ERROR_ID_WIFI_DISABLED  @""
#define ERROR_DESCRIPTION_HS @"description"



#define ACTION_GET_HS2S_DEVICE_INFO @"action_get_device_info"

#define ACTION_SET_HS2S_UNIT  @"action_set_unit"

#define ACTION_GET_HS2S_USER_INFO  @"action_get_user_info"

#define ACTION_UPDATE_HS2S_USER_INFO  @"action_create_or_update_user_info"

#define ACTION_DELETE_HS2S_USER  @"action_delete_user_info"

#define ACTION_GET_HS2S_MEMORY_COUNT  @"action_history_data_num"

#define ACTION_GET_HS2S_MEMORY_DATA  @"action_history_data"

#define ACTION_DELETE_HS2S_MEMORY_DATA  @"action_delete_history_data"

#define ACTION_GET_HS2S_ANONYMOUS_MEMORY_COUNT  @"action_anonymous_data_num"

#define ACTION_GET_HS2S_ANONYMOUS_MEMORY_DATA  @"action_anonymous_data"

#define ACTION_DELETE_HS2S_ANONYMOUS_MEMORY_DATA  @"action_delete_anonymous_history_data"

#define ACTION_HS2S_ONLINE_DATA  @"action_online_real_time_data"

#define ACTION_HS2S_ONLINE_RESULT  @"action_online_result"

#define ACTION_HS2S_BODYFAT_RESULT  @"action_body_fat_result"

#define ACTION_ONLINE_WEIGHTANDBody_INFO  @"online_weigthandbody_info"

#define ACTION_BroadCastType_DEVICE  @"broadCastType_device"

#define ACTION_RESET_DEVICE  @"reset_device"

#define ACTION_MEASURE_FINISH  @"measure_finish"

#define HS2S_DEVICE_INFO  @"device_info"

#define HS2S_DEVICE_BATTERY  @"battery"

#define HS2S_DEVICE_UNIT  @"unit_current"

#define HS2S_DEVICE_USER_COUNT  @"user_count"

#define HS2S_USER_INFO_ARRAY  @"user_info_array"

#define HS2S_USER_INFO_COUNT  @"user_info_count"

#define HS2S_BODYBUILDING  @"body_building"

#define HS2S_IMPEDANCE  @"impedance"

#define HS2S_HEIGHT  @"height"

#define HS2S_AGE  @"age"

#define HS2S_GENDER  @"gender"

#define HS2S_WEIGTH  @"weight"

#define HS2S_CREATE_TIME  @"create_time"

#define HS2S_INSTRUCTION_TYPE  @"instruction_type"

#define HS2S_USER_ID  @"user_id"

#define MEMORY_COUNT  @"history_data_count"

#define MEMORY_DATA  @"history_data"

#define HS2S_DATA_BODY_FAT_RESULT  @"data_body_fat_result"

#define HS2S_SET_RESULT  @"result"

#define ACTION_HS2S_MEASURE_FINISH  @"action_measure_finish_at_critical"

#define ACTION_HS2S_RESET_DEVICE  @"action_restore_fatory_settings"

#define HS2S_FAT_WEIGHT  @"fat_weight"

#define HS2S_FAT_CONTROL  @"fat_control"

#define HS2S_WEIGHT_CONTROL  @"weight_control"

#define HS2S_STANDARD_WEIGHT  @"standard_weight"

#define HS2S_SKELETAL_MUSCLE_MASS  @"skeletal_muscle_mass"

#define HS2S_BODY_WATER_RATE  @"body_water_rate"

#define HS2S_MUSCLE_MASS  @"muscle_mass"

#define HS2S_MUSCLE_CONTROL  @"muscle_control"

#define HS2S_PHYSICAL_AGE  @"physical_age"

#define HS2S_VISCERAL_FAT_GRADE  @"visceral_fat_grade"

#define HS2S_PROTEIN_RATE  @"protein_rate"

#define HS2S_BONE_SALT_CONTENT  @"bone_salt_content"

#define HS2S_BODY_FIT_PERCENTAGE  @"body_fit_percentage"

#define HS2S_MEASURE_TIME  @"measure_time"


#define ACTION_HS2S_LightUp_DEVICE  @"action_lightup_settings"

#define HS2S_DEVICE_STATUS  @"device_status"

#define ACTION_HS2S_MEASURE_HEARTRATE_DEVICE_STATUS  @"action_measure_heartrate_device_status"

#define ACTION_HS2S_MEASURE_HEARTRATE  @"action_measure_heartrate"

#define HS2S_MEASURE_HEARTRATE_RESULT  @"measure_heartrate_result"


#define ACTION_HS2S_EXIT_MEASURE_HEARTRATE_STATUS  @"action_exit_measure_heartrate_status"



@end