diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/HS2SProfileModule.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/HS2SProfileModule.h | 169 |
1 files changed, 169 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/HS2SProfileModule.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/HS2SProfileModule.h new file mode 100644 index 0000000..07862b4 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/HS2SProfileModule.h | |||
| @@ -0,0 +1,169 @@ | |||
| 1 | // | ||
| 2 | // HSProfileModule.h | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by ihealth on 16/12/2. | ||
| 6 | // Copyright © 2016年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #if __has_include(<React/RCTAssert.h>) | ||
| 11 | #import <React/RCTBridgeModule.h> | ||
| 12 | #else | ||
| 13 | #import "RCTBridgeModule.h" | ||
| 14 | #endif | ||
| 15 | |||
| 16 | @interface HS2SProfileModule : NSObject<RCTBridgeModule> | ||
| 17 | |||
| 18 | #define ACTION_LIVEDATA_HS @"liveData_hs" | ||
| 19 | #define LIVEDATA_HS @"value" | ||
| 20 | |||
| 21 | #define ACTION_ONLINE_RESULT_HS @"online_result_hs" | ||
| 22 | #define DATAID @"dataID" | ||
| 23 | #define WEIGHT_HS @"value" | ||
| 24 | #define FAT_HS @"" | ||
| 25 | #define WATER_HS @"" | ||
| 26 | #define MUSCLE_HS @"" | ||
| 27 | #define SKELETON_HS @"" | ||
| 28 | #define FATELEVEL_HS @"" | ||
| 29 | #define DCI_HS @"" | ||
| 30 | |||
| 31 | #define ACTION_GET_ALL_CONNECTED_DEVICES @"action_get_all_connected_devices" | ||
| 32 | #define ACTION_HISTORICAL_DATA_HS @"historicaldata_hs" | ||
| 33 | #define HISTORDATA_HS @"historyData" | ||
| 34 | #define MEASUREMENT_DATE_HS @"date" | ||
| 35 | #define ACTION_HISTORICAL_DATA_COMPLETE_HS @"finishTranslate" | ||
| 36 | #define ACTION_NO_HISTORICALDATA @"noHistoryData" | ||
| 37 | #define BATTERY_HS @"battery_hs" | ||
| 38 | #define ACTION_BATTARY_HS @"action_get_battery_hs" | ||
| 39 | #define ACTION_ERROR_HS @"error_hs" | ||
| 40 | #define ERROR_NUM_HS @"error" | ||
| 41 | #define ERROR_ID_ILLEGAL_ARGUMENT @"400" | ||
| 42 | #define ERROR_ID_WIFI_DISABLED @"" | ||
| 43 | #define ERROR_DESCRIPTION_HS @"description" | ||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | #define ACTION_GET_HS2S_DEVICE_INFO @"action_get_device_info" | ||
| 48 | |||
| 49 | #define ACTION_SET_HS2S_UNIT @"action_set_unit" | ||
| 50 | |||
| 51 | #define ACTION_GET_HS2S_USER_INFO @"action_get_user_info" | ||
| 52 | |||
| 53 | #define ACTION_UPDATE_HS2S_USER_INFO @"action_create_or_update_user_info" | ||
| 54 | |||
| 55 | #define ACTION_DELETE_HS2S_USER @"action_delete_user_info" | ||
| 56 | |||
| 57 | #define ACTION_GET_HS2S_MEMORY_COUNT @"action_history_data_num" | ||
| 58 | |||
| 59 | #define ACTION_GET_HS2S_MEMORY_DATA @"action_history_data" | ||
| 60 | |||
| 61 | #define ACTION_DELETE_HS2S_MEMORY_DATA @"action_delete_history_data" | ||
| 62 | |||
| 63 | #define ACTION_GET_HS2S_ANONYMOUS_MEMORY_COUNT @"action_anonymous_data_num" | ||
| 64 | |||
| 65 | #define ACTION_GET_HS2S_ANONYMOUS_MEMORY_DATA @"action_anonymous_data" | ||
| 66 | |||
| 67 | #define ACTION_DELETE_HS2S_ANONYMOUS_MEMORY_DATA @"action_delete_anonymous_history_data" | ||
| 68 | |||
| 69 | #define ACTION_HS2S_ONLINE_DATA @"action_online_real_time_data" | ||
| 70 | |||
| 71 | #define ACTION_HS2S_ONLINE_RESULT @"action_online_result" | ||
| 72 | |||
| 73 | #define ACTION_HS2S_BODYFAT_RESULT @"action_body_fat_result" | ||
| 74 | |||
| 75 | #define ACTION_ONLINE_WEIGHTANDBody_INFO @"online_weigthandbody_info" | ||
| 76 | |||
| 77 | #define ACTION_BroadCastType_DEVICE @"broadCastType_device" | ||
| 78 | |||
| 79 | #define ACTION_RESET_DEVICE @"reset_device" | ||
| 80 | |||
| 81 | #define ACTION_MEASURE_FINISH @"measure_finish" | ||
| 82 | |||
| 83 | #define HS2S_DEVICE_INFO @"device_info" | ||
| 84 | |||
| 85 | #define HS2S_DEVICE_BATTERY @"battery" | ||
| 86 | |||
| 87 | #define HS2S_DEVICE_UNIT @"unit_current" | ||
| 88 | |||
| 89 | #define HS2S_DEVICE_USER_COUNT @"user_count" | ||
| 90 | |||
| 91 | #define HS2S_USER_INFO_ARRAY @"user_info_array" | ||
| 92 | |||
| 93 | #define HS2S_USER_INFO_COUNT @"user_info_count" | ||
| 94 | |||
| 95 | #define HS2S_BODYBUILDING @"body_building" | ||
| 96 | |||
| 97 | #define HS2S_IMPEDANCE @"impedance" | ||
| 98 | |||
| 99 | #define HS2S_HEIGHT @"height" | ||
| 100 | |||
| 101 | #define HS2S_AGE @"age" | ||
| 102 | |||
| 103 | #define HS2S_GENDER @"gender" | ||
| 104 | |||
| 105 | #define HS2S_WEIGTH @"weight" | ||
| 106 | |||
| 107 | #define HS2S_CREATE_TIME @"create_time" | ||
| 108 | |||
| 109 | #define HS2S_INSTRUCTION_TYPE @"instruction_type" | ||
| 110 | |||
| 111 | #define HS2S_USER_ID @"user_id" | ||
| 112 | |||
| 113 | #define MEMORY_COUNT @"history_data_count" | ||
| 114 | |||
| 115 | #define MEMORY_DATA @"history_data" | ||
| 116 | |||
| 117 | #define HS2S_DATA_BODY_FAT_RESULT @"data_body_fat_result" | ||
| 118 | |||
| 119 | #define HS2S_SET_RESULT @"result" | ||
| 120 | |||
| 121 | #define ACTION_HS2S_MEASURE_FINISH @"action_measure_finish_at_critical" | ||
| 122 | |||
| 123 | #define ACTION_HS2S_RESET_DEVICE @"action_restore_fatory_settings" | ||
| 124 | |||
| 125 | #define HS2S_FAT_WEIGHT @"fat_weight" | ||
| 126 | |||
| 127 | #define HS2S_FAT_CONTROL @"fat_control" | ||
| 128 | |||
| 129 | #define HS2S_WEIGHT_CONTROL @"weight_control" | ||
| 130 | |||
| 131 | #define HS2S_STANDARD_WEIGHT @"standard_weight" | ||
| 132 | |||
| 133 | #define HS2S_SKELETAL_MUSCLE_MASS @"skeletal_muscle_mass" | ||
| 134 | |||
| 135 | #define HS2S_BODY_WATER_RATE @"body_water_rate" | ||
| 136 | |||
| 137 | #define HS2S_MUSCLE_MASS @"muscle_mass" | ||
| 138 | |||
| 139 | #define HS2S_MUSCLE_CONTROL @"muscle_control" | ||
| 140 | |||
| 141 | #define HS2S_PHYSICAL_AGE @"physical_age" | ||
| 142 | |||
| 143 | #define HS2S_VISCERAL_FAT_GRADE @"visceral_fat_grade" | ||
| 144 | |||
| 145 | #define HS2S_PROTEIN_RATE @"protein_rate" | ||
| 146 | |||
| 147 | #define HS2S_BONE_SALT_CONTENT @"bone_salt_content" | ||
| 148 | |||
| 149 | #define HS2S_BODY_FIT_PERCENTAGE @"body_fit_percentage" | ||
| 150 | |||
| 151 | #define HS2S_MEASURE_TIME @"measure_time" | ||
| 152 | |||
| 153 | |||
| 154 | #define ACTION_HS2S_LightUp_DEVICE @"action_lightup_settings" | ||
| 155 | |||
| 156 | #define HS2S_DEVICE_STATUS @"device_status" | ||
| 157 | |||
| 158 | #define ACTION_HS2S_MEASURE_HEARTRATE_DEVICE_STATUS @"action_measure_heartrate_device_status" | ||
| 159 | |||
| 160 | #define ACTION_HS2S_MEASURE_HEARTRATE @"action_measure_heartrate" | ||
| 161 | |||
| 162 | #define HS2S_MEASURE_HEARTRATE_RESULT @"measure_heartrate_result" | ||
| 163 | |||
| 164 | |||
| 165 | #define ACTION_HS2S_EXIT_MEASURE_HEARTRATE_STATUS @"action_exit_measure_heartrate_status" | ||
| 166 | |||
| 167 | |||
| 168 | |||
| 169 | @end | ||
