JLChen
2021-11-15 501b06cda2eeda60456f317da3074b6c19cc9495
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/config/HDLLinkConfig.java
File was renamed from HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/config/AuthenticateConfig.java
@@ -1,16 +1,17 @@
package com.hdl.sdk.common.config;
package com.hdl.sdk.connect.config;
import android.text.TextUtils;
import com.hdl.sdk.common.config.TopicConstant;
import com.hdl.sdk.common.utils.SPUtils;
/**
 * Created by jlchen on 11/11/21.
 *
 * @Description : AuthenticateConfig
 * @Description : HDLLinkConfig
 */
public class AuthenticateConfig {
public class HDLLinkConfig {
    private static final String Authenticate_LS_KEY = "auth_ls_key";
    private static final String AUTHENTICATE_GATEWAYID_KEY = "auth_gatewayid_key";
    private static final String AUTHENTICATE_IPADDRESS_KEY = "auth_ipaddress_key";
@@ -23,17 +24,17 @@
    /**
     * instance
     */
    private volatile static AuthenticateConfig instance;
    private volatile static HDLLinkConfig instance;
    /**
     * getInstance
     *
     * @return AuthenticateConfig
     */
    public static synchronized AuthenticateConfig getInstance() {
    public static synchronized HDLLinkConfig getInstance() {
        if (instance == null) {
            synchronized (AuthenticateConfig.class) {
            synchronized (HDLLinkConfig.class) {
                if (instance == null) {
                    instance = new AuthenticateConfig();
                    instance = new HDLLinkConfig();
                    instance.loadConfig();
                }
            }
@@ -58,6 +59,8 @@
     */
    void loadConfig(){
        localSecret = SPUtils.getString(Authenticate_LS_KEY, "");
        gatewayId = SPUtils.getString(AUTHENTICATE_GATEWAYID_KEY, "");
        ipAddress = SPUtils.getString(AUTHENTICATE_IPADDRESS_KEY, "");
    }
    /**