wxr
2023-02-21 84396f60e368a5f5261ba21121d013ef8bfbf523
AndroidOpenDemo/app/src/main/java/com/utils/HdlToLcUtils.java
@@ -16,6 +16,7 @@
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;
@@ -30,6 +31,7 @@
    private String token;
    private String subAccessToken;
    private IAddCamera iAddCamera;
    private String productBrandldentity;
    public Activity getActivity() {
        return activity;
@@ -100,10 +102,15 @@
        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)
@@ -136,6 +143,14 @@
        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;
    }