| | |
| | | |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 下载数据完成标记 |
| | | /// </summary> |
| | | public bool DownloadDataComplete = true; |
| | | /// <summary> |
| | | /// 下载数据 |
| | |
| | | for (int i = 0; i < FunctionList.List.GetDeviceFunctionList().Count;) |
| | | { |
| | | var localFunction = FunctionList.List.GetDeviceFunctionList()[i]; |
| | | if (localFunction.Spk_Prefix == FunctionCategory.Music || string.IsNullOrEmpty(localFunction.Spk_Prefix)) |
| | | if (SPK.MusicSpkList().Contains(localFunction.spk)) |
| | | { |
| | | i++; |
| | | continue; |
| | |
| | | UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken = video.subAccountToken; |
| | | } else if (video.interphoneType == InterphoneType.HDL.ToString()) { |
| | | isInterphoneType_HDL = true; |
| | | } |
| | | else if(video.interphoneType == InterphoneType.HDL.ToString()) |
| | | { |
| | | DB_ResidenceData.Instance.SupportFacePass = true; |
| | | DB_ResidenceData.Instance.SaveResidenceData(); |
| | | DB_ResidenceData.Instance.SaveResidenceData(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | //======================安防==================== |
| | | GetSecurityList(); |
| | | //======================SIP账号==================== |
| | | |
| | | //======================获取Sip账号并且初始化SDK可视对讲设备列表==================== |
| | | //如果检测线程没启动,才继续下面操作 因为App有可能刚启动马上收到推送了,然后才执行到这里 |
| | |
| | | HDLLinphone.Current.LogoutAllAccount(); |
| | | } |
| | | } |
| | | |
| | | |
| | | //======================安防==================== |
| | | GetSecurityList(); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | //重新连接mqtt |
| | | DAL.Mqtt.MqttClient.DisConnectRemote("刷新数据,重连mqtt",false); |
| | | #endregion |
| | | |
| | | } |
| | | } |
| | | }) |