| | |
| | | */
|
| | | public static BindDeviceData.Response userDeviceBind(BindDeviceData bindDeviceData) throws BusinessException {
|
| | | HashMap<String, Object> paramsMap = new HashMap<String, Object>();
|
| | | // paramsMap.put("token", bindDeviceData.data.token);
|
| | | // paramsMap.put("deviceId", bindDeviceData.data.deviceId);
|
| | | paramsMap.put("code", bindDeviceData.data.code);
|
| | | paramsMap.put("spk","security.ipcam.imou");
|
| | | paramsMap.put("extDevId",bindDeviceData.data.deviceId);
|
| | |
|
| | |
|
| | | paramsMap.put("token", bindDeviceData.data.token);
|
| | | paramsMap.put("deviceId", bindDeviceData.data.deviceId);
|
| | | JsonObject json = HttpSend.execute(paramsMap, CONST.METHOD_BINDDEVICE,DMS_TIME_OUT);
|
| | | BindDeviceData.Response response = new BindDeviceData.Response();
|
| | | response.parseData(json);
|
| | |
| | | */
|
| | | public static BindDeviceData.Response hdlUserDeviceBind(BindDeviceData bindDeviceData) throws BusinessException {
|
| | | HashMap<String, Object> paramsMap = new HashMap<String, Object>();
|
| | | paramsMap.put("deviceId", bindDeviceData.data.deviceId);
|
| | | paramsMap.put("extDevId", bindDeviceData.data.deviceId);
|
| | | paramsMap.put("spk","security.ipcam.imou");
|
| | | paramsMap.put("sid","8D00708PAGA01ED");
|
| | | paramsMap.put("code", bindDeviceData.data.code);
|
| | | JsonObject json = HttpSend.execute(paramsMap, CONST.METHOD_BINDDEVICE,DMS_TIME_OUT);
|
| | | BindDeviceData.Response response = new BindDeviceData.Response();
|
| | |
| | | // HttpSend.execute(jsonParam, CONST.ADD_POLICY,TIME_OUT);
|
| | | // return true;
|
| | |
|
| | | final Map<String, Object> map = new Gson().fromJson(new Gson().toJson(req), new TypeToken<Map<String, String>>() {
|
| | | }.getType());
|
| | |
|
| | | JsonObject json = HttpSend.execute(map, CONST.CREATE_SUB_ACCOUNT, TIME_OUT);
|
| | | // final Map<String, Object> map = new Gson().fromJson(new Gson().toJson(req), new TypeToken<Map<String, Object>>() {
|
| | | // }.getType());
|
| | | //
|
| | | // JsonObject json = HttpSend.execute(map, CONST.CREATE_SUB_ACCOUNT, TIME_OUT);
|
| | | return true;
|
| | | }
|
| | | }
|