| | |
| | | import com.mm.android.deviceaddmodule.LCDeviceEngine; |
| | | import com.mm.android.deviceaddmodule.mobilecommon.AppConsume.ProviderManager; |
| | | import com.mm.android.deviceaddmodule.openapi.CONST; |
| | | import com.mm.android.deviceaddmodule.openapi.HttpClient; |
| | | import com.usermodule.net.IUserDataCallBack; |
| | | import com.usermodule.net.UserNetManager; |
| | | |
| | |
| | | private String token; |
| | | private String subAccessToken; |
| | | private IAddCamera iAddCamera; |
| | | private String productBrandldentity; |
| | | |
| | | public Activity getActivity() { |
| | | return activity; |
| | |
| | | if(!EventBus.getDefault().isRegistered(this)){ |
| | | EventBus.getDefault().register(this); |
| | | } |
| | | this.iAddCamera = iAddCamera; |
| | | //开启添加页面 |
| | | activity.startActivity(new Intent(activity.getApplication(), DeviceAddActivity.class)); |
| | | HdlToLcUtils.getInstance().requestCameraPermissions(); |
| | | |
| | | } |
| | | |
| | | public void ShowErrorInfo(boolean isShow){ |
| | | HttpClient.SetShowErrorInfo(isShow); |
| | | } |
| | | |
| | | @Subscribe(threadMode = ThreadMode.MAIN) |
| | |
| | | LCDeviceEngine.newInstance().setHomeId(homeId); |
| | | } |
| | | |
| | | public String getProductBrandldentity() { return productBrandldentity;} |
| | | |
| | | public void setProductBrandldentity(String productBrandldentity){ |
| | | this.productBrandldentity = productBrandldentity; |
| | | LCDeviceEngine.newInstance().setProductBrandldentity(productBrandldentity); |
| | | |
| | | } |
| | | |
| | | public String getToken() { |
| | | return token; |
| | | } |