| | |
| | | { |
| | | return null; |
| | | } |
| | | var dateList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<LogicIdData>>(responsePackNew.Data.ToString()); |
| | | List<LogicIdData> dateList = new List<LogicIdData>(); |
| | | try |
| | | { |
| | | dateList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<LogicIdData>>(responsePackNew.Data.ToString()); |
| | | }catch (Exception ex) |
| | | { |
| | | MainPage.Log($"获取逻辑ID列表异常:{ex.Message}"); |
| | | } |
| | | return dateList; |
| | | } |
| | | /// <summary> |
| | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取门锁用户列表(萤石视频门锁) |
| | | /// </summary> |
| | | /// <param name="deviceId">设备</param> |
| | | /// <returns></returns> |
| | | public List<Face> GetVideoDoorLockUserListInfo(Function device) |
| | | { |
| | | var userList = FuntionControlView.VideoDoorLock.VideDoorLockSend.Current.GetVideoDoorLockUserListInfo(device); |
| | | List<Face> faceIdList = new List<Face>(); |
| | | for (int i = 0; i < userList.Count; i++) |
| | | { |
| | | Face face = new Face(); |
| | | var user = userList[i]; |
| | | face.userId = user.extUserId; |
| | | face.userName = user.extUserName; |
| | | faceIdList.Add(face); |
| | | } |
| | | VideoDoorLockUserListInfo.Clear(); |
| | | VideoDoorLockUserListInfo.AddRange(faceIdList); |
| | | return faceIdList; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="api_Url">请求地址(不是绝对地址)</param> |
| | | /// <param name="tag">标记->描述接口(自定义)</param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew RequestServerhomeId(object o, string api_Url, string tag,int mTimeout = 3) |
| | | public ResponsePackNew RequestServerhomeId(object o, string api_Url, string tag,int mTimeout = 8) |
| | | { |
| | | Log($"{DateTime.Now}->发送->{tag}", api_Url,o.ToString()); |
| | | var requestJson = HttpUtil.GetSignRequestJson(o); |