wxr
2023-03-16 68d9078b49cfa8e83ed553835b05d4042c183969
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
    }
}