| | |
| | | using HDL_ON.DAL; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Video; |
| | | using Newtonsoft.Json; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON.Common |
| | |
| | | |
| | | //===================读取逻辑列表========================== |
| | | UI.UI2.Intelligence.Automation.MainView.GetLogicList(); |
| | | |
| | | //===================读取可视对讲数据========================== |
| | | //判断是否有可视对讲数据,有则显示可视对讲icon |
| | | //var flVideoInfo = HttpRequest.CheckFlVideo(); |
| | | //if(flVideoInfo.Code == StateCode.SUCCESS) |
| | | //{ |
| | | // FunctionList.List.videoIntercom1111 = Newtonsoft.Json.JsonConvert.DeserializeObject<UI.UI2.FuntionControlView.Video.VideoClouds>(flVideoInfo.Data.ToString()); |
| | | //} |
| | | |
| | | //======================获取可视对讲设备列表==================== |
| | | var videoInfo= VideoSend.GetVideoInfoList(); |
| | | if (videoInfo.Code == StateCode.SUCCESS) |
| | | { |
| | | string videoList = videoInfo.Data.ToString(); |
| | | FunctionList.List.videoIntercom = JsonConvert.DeserializeObject<List<UI.UI2.FuntionControlView.Video.Video>>(videoList); |
| | | |
| | | foreach (var video in FunctionList.List.videoIntercom) |
| | | { |
| | | if (video.interphoneType == "IMOUVISIAL") |
| | | { |
| | | UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken = video.subAccountToken; |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |