| | |
| | | package com.mm.android.deviceaddmodule.openapi;
|
| | |
|
| | | import android.content.BroadcastReceiver;
|
| | | import android.content.Context;
|
| | | import android.content.Intent;
|
| | | import android.content.IntentFilter;
|
| | |
|
| | | import com.google.gson.Gson;
|
| | | import com.google.gson.JsonElement;
|
| | | import com.google.gson.JsonObject;
|
| | | import com.google.gson.reflect.TypeToken;
|
| | | import com.mm.android.deviceaddmodule.LCDeviceEngine;
|
| | | import com.mm.android.deviceaddmodule.SeachDeviceService;
|
| | | import com.mm.android.deviceaddmodule.device_wifi.CurWifiInfo;
|
| | | import com.mm.android.deviceaddmodule.device_wifi.WifiConfig;
|
| | | import com.mm.android.deviceaddmodule.mobilecommon.AppConsume.BusinessException;
|
| | | import com.mm.android.deviceaddmodule.mobilecommon.common.LCConfiguration;
|
| | | import com.mm.android.deviceaddmodule.openapi.data.AddDevicePolicyData;
|
| | | import com.mm.android.deviceaddmodule.openapi.data.BindDeviceData;
|
| | | import com.mm.android.deviceaddmodule.openapi.data.DeviceDetailListData;
|
| | |
| | | paramsMap.put("extDevId", bindDeviceData.data.deviceId);
|
| | | paramsMap.put("spk","security.ipcam.imou");
|
| | | paramsMap.put("sid","8D00708PAGA01ED");
|
| | | paramsMap.put("productBrandldentity",bindDeviceData.data.productBrandldentity);
|
| | | paramsMap.put("code", bindDeviceData.data.code);
|
| | | JsonObject json = HttpSend.execute(paramsMap, CONST.METHOD_BINDDEVICE,DMS_TIME_OUT);
|
| | | BindDeviceData.Response response = new BindDeviceData.Response();
|
| | | response.parseData(json);
|
| | |
|
| | | Intent intent = new Intent();
|
| | | intent.setAction("hdlUserDeviceBind");
|
| | | intent.putExtra("data",response.data.toString());
|
| | |
|
| | | return response;
|
| | | }
|
| | |
|