2023年07月26日09:16:49
初始化不清空呼叫和监视设备信息
| | |
| | | //先清空呼叫和监视设备信息 |
| | | if (clearCallInfo) |
| | | { |
| | | InitCallInfo(null); |
| | | //InitCallInfo(null); |
| | | } |
| | | |
| | | HDLSipInfo mHDLSipInfo = GetHDLSipInfo(mHDLCallVideoInfo.HomeId); |
| | |
| | | /// 当前值 |
| | | /// </summary> |
| | | public object curValue = new object(); |
| | | /// <summary> |
| | | /// 属性单位 |
| | | /// </summary> |
| | | public string unit=string.Empty; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | #if DEBUG |
| | | if (msg.Contains("收到数据") |
| | | || msg.Contains("发送") |
| | | || msg.Contains("接收到推送") |
| | | |
| | | ) |
| | | Console.WriteLine(msg); |
| | |
| | | public string GetTemperatureUnit(Entity.Function device) |
| | | { |
| | | string unit = string.Empty; |
| | | if (device.GetAttribute("temperature_type") != null && device.GetAttribute("temperature_type").value.Count > 0) |
| | | if (device.GetAttribute("temperature_type") != null) |
| | | { |
| | | unit = device.GetAttribute("temperature_type").value[0]; |
| | | unit = device.GetAttribute("temperature_type").unit; |
| | | } |
| | | if (string.IsNullOrEmpty(unit)) |
| | | { |
| | |
| | | /// <param name="api_Url">请求地址(不是绝对地址)</param> |
| | | /// <param name="tag">标记->描述接口(自定义)</param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew RequestServerhomeId(object o, string api_Url, string tag, int mTimeout = 5) |
| | | public ResponsePackNew RequestServerhomeId(object o, string api_Url, string tag, int mTimeout = 15) |
| | | { |
| | | JObject jobject = JObject.Parse(Newtonsoft.Json.JsonConvert.SerializeObject(o)); |
| | | return UI2.Intelligence.Automation.Send.Current.RequestServerhomeId(jobject, api_Url, tag, mTimeout); |