| | |
| | | import android.content.Context; |
| | | |
| | | import com.hdl.hdlhttp.HxHttpConfig; |
| | | import com.hdl.sdk.common.event.DeleteNetworkListener; |
| | | import com.hdl.sdk.common.utils.LogUtils; |
| | | import com.hdl.sdk.common.utils.ThreadToolUtils; |
| | | import com.hdl.sdk.connect.bean.request.DeviceAuthRequest; |
| | |
| | | private static final HDLLink instance = new HDLLink(); |
| | | |
| | | private String appKey, appSecret; |
| | | public DeleteNetworkListener listener; |
| | | |
| | | /** |
| | | * getInstance |
| | |
| | | public synchronized void removeAllTopicsListener(EventListener listener) { |
| | | if (listener == null) return; |
| | | EventDispatcher.getInstance().removeAllTopicsListener(listener); |
| | | } |
| | | |
| | | /** |
| | | * 注册退网主题的监听 |
| | | * |
| | | * @param listener |
| | | */ |
| | | public synchronized void setDeleteNetworkListener(DeleteNetworkListener listener) { |
| | | this.listener = listener; |
| | | } |
| | | |
| | | /***********************三方设备和网关通信之前的认证流程****************************/ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 场景详情 |
| | | * |
| | | * @param sids 场景sid列表 |
| | | * @param callBack 回调 |
| | | */ |
| | | public void getScene(List<String> sids, HDLLinkCallBack callBack) { |
| | | HDLSocket.getInstance().getScene(sids, callBack); |
| | | } |
| | | |
| | | /** |
| | | * 场景控制 |
| | | * |
| | | * @param sids 场景sid列表 |