package hdl.onpro;
|
|
import android.app.Activity;
|
|
import hdl.onpro.IRegisterDeviceFeedback;
|
import com.mm.android.deviceaddmodule.LCDeviceEngine;
|
|
public class HdlData {
|
|
|
private hdl.onpro.IRegisterDeviceFeedback iRegisterDeviceFeedback;
|
public hdl.onpro.IRegisterDeviceFeedback getiRegisterDeviceFeedback(){
|
if(iRegisterDeviceFeedback == null){
|
iRegisterDeviceFeedback = new hdl.onpro.IRegisterDeviceFeedback() {
|
@Override
|
public void feedback(String method, String data) {
|
|
}
|
};
|
}
|
return iRegisterDeviceFeedback;
|
}
|
|
public void setiRegisterDeviceFeedback(hdl.onpro.IRegisterDeviceFeedback feedback){
|
iRegisterDeviceFeedback = feedback;
|
}
|
|
private String productBrandldentity;
|
|
/**
|
* instance
|
*/
|
private volatile static HdlData instance;
|
|
/**
|
* getInstance
|
*
|
* @return HDLLink
|
*/
|
public static synchronized HdlData getInstance() {
|
if (instance == null) {
|
synchronized (HdlData.class) {
|
if (instance == null) {
|
instance = new HdlData();
|
}
|
}
|
}
|
return instance;
|
}
|
|
|
public void initData(hdl.onpro.IRegisterDeviceFeedback iRegisterDeviceFeedback, String productBrandldentity){
|
LCDeviceEngine.newInstance().setProductBrandldentity(productBrandldentity);
|
this.iRegisterDeviceFeedback = iRegisterDeviceFeedback;
|
}
|
}
|