| | |
| | | /// </summary> |
| | | public const string API_POST_VideoDevice_UpdateCallStatus = "/home-wisdom/platform/imou/updateCallStatus"; |
| | | /// <summary> |
| | | /// 拒接(挂段所有呼叫) |
| | | /// </summary> |
| | | public const string API_POST_VideoDevice_RejectCallIn = "/home-wisdom/platform/imou/updateCallStatus"; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取通话记录 |
| | | /// </summary> |
| | | public const string API_POST_FL_GetCallList = "/home-wisdom/platform/imou/listCallRecords"; |
| | |
| | | { IsBackground = false }.Start(); |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 拒接(挂段所有呼叫) |
| | | /// </summary> |
| | | public void HDLRejectCallIn() { |
| | | |
| | | if (CheckmHDLCallVideoInfoIsNullOrEmpty()) return; |
| | | |
| | | new Thread(() => |
| | | { |
| | | Dictionary<string, object> dic = new Dictionary<string, object>(); |
| | | dic.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); |
| | | dic.Add("deviceId", mHDLCallVideoInfo.DeviceId); |
| | | dic.Add("interphoneType", "HDL"); |
| | | dic.Add("callId", mHDLCallVideoInfo.CallId);//呼叫id |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson(dic); |
| | | var revertObj = HttpUtil.RequestHttpsPostFroHome(NewAPI.API_POST_VideoDevice_RejectCallIn, requestJson); |
| | | if (revertObj.Code == StateCode.SUCCESS) |
| | | { |
| | | |
| | | } |
| | | else |
| | | { |
| | | Utlis.WriteLine("POST 更新状态失败 code: " + revertObj.Code); |
| | | } |
| | | |
| | | }) |
| | | { IsBackground = false }.Start(); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | |
| | | { |
| | | //showToast("拒接"); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.REJECT, InterphoneType.HDL); |
| | | hdlLinphone.HDLRejectCallIn(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | unit = "°C"; |
| | | break; |
| | | case SPK.SensorTVOC: |
| | | unit = "PPB"; |
| | | unit = "mg/m³"; |
| | | break; |
| | | case SPK.SensorCO2: |
| | | unit = "PPM"; |
| | |
| | | PlaceholderText = Language.StringByID(StringId.PlsEntryPassword), |
| | | SecureTextEntry = true, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | |
| | | }; |
| | | passwordView.AddChidren(etPassword); |
| | | |
| | |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.month_electricity.ToString(),curValue = "999",state = "999"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.total_electricity.ToString(),curValue = "9999",state = "9999"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.active_power.ToString(),curValue = "9999",state = "9999"}, |
| | | //new FunctionAttributes(){ key = AcstParent_AttrEnum.room_temp.ToString(),curValue = "26",state = "26"}, |
| | | //new FunctionAttributes(){ key = AcstParent_AttrEnum.room_humidity.ToString(),curValue = "66",state = "66"}, |
| | | //new FunctionAttributes(){ key = AcstParent_AttrEnum.co2.ToString(),curValue = "266",state = "266"}, |
| | | //new FunctionAttributes(){ key = AcstParent_AttrEnum.tvoc.ToString(),curValue = "666",state = "666"}, |
| | | //new FunctionAttributes(){ key = AcstParent_AttrEnum.pm25.ToString(),curValue = "36",state = "36"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.room_temp.ToString(),curValue = "26",state = "26"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.room_humidity.ToString(),curValue = "66",state = "66"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.co2.ToString(),curValue = "266",state = "266"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.tvoc.ToString(),curValue = "666",state = "666"}, |
| | | new FunctionAttributes(){ key = AcstParent_AttrEnum.pm25.ToString(),curValue = "36",state = "36"}, |
| | | } |
| | | }); |
| | | |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | name = "测试-空调科技系统子控-1", |
| | | name = "子控-1", |
| | | spk = SPK.AcstSub, |
| | | sid = "0000001", |
| | | attributes = new List<FunctionAttributes>() |
| | |
| | | }); |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | name = "测试-空调科技系统子控-2", |
| | | name = "子控-2", |
| | | spk = SPK.AcstSub, |
| | | sid = "0000002", |
| | | attributes = new List<FunctionAttributes>() |
| | |
| | | }); |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | name = "测试-空调科技系统子控-3", |
| | | name = "子控-3", |
| | | spk = SPK.AcstSub, |
| | | sid = "0000003", |
| | | attributes = new List<FunctionAttributes>() |
| | |
| | | }); |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | name = "测试-空调科技系统子控-4", |
| | | name = "子控-4", |
| | | spk = SPK.AcstSub, |
| | | sid = "0000004", |
| | | attributes = new List<FunctionAttributes>() |
| | |
| | | }); |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | name = "测试-空调科技系统子控-5", |
| | | name = "子控-5", |
| | | spk = SPK.AcstSub, |
| | | sid = "0000005", |
| | | attributes = new List<FunctionAttributes>() |
| | |
| | | btnTitle.Text = Language.StringByID(StringId.Temp) + "(°C)"; |
| | | break; |
| | | case SPK.SensorTVOC: |
| | | btnTitle.Text = "TVOC(PPB)"; |
| | | btnTitle.Text = "TVOC(mg/m³)"; |
| | | break; |
| | | case SPK.SensorCO2: |
| | | btnTitle.Text = "CO2(PPM)"; |
| | |
| | | btnTitle.Text = Language.StringByID(StringId.Temp) + "(°C)"; |
| | | break; |
| | | case SPK.SensorTVOC: |
| | | btnTitle.Text = "TVOC(PPB)"; |
| | | btnTitle.Text = "TVOC(mg/m³)"; |
| | | break; |
| | | case SPK.SensorCO2: |
| | | btnTitle.Text = "CO2(PPM)"; |