| | |
| | | #endregion |
| | | |
| | | #region * 住宅部分___________________________ |
| | | ///// <summary> |
| | | ///// 获取住宅列表 |
| | | ///// </summary> |
| | | //public ResponsePackNew GetHomeList (HomeTypeEnum homeType = HomeTypeEnum.BUSPRO) |
| | | //{ |
| | | // var requestJson = HttpUtil.GetSignRequestJson (new GetHomeListObj () { homeType = homeType.ToString () }); |
| | | // return HttpUtil.RequestHttpsPost (NewAPI.API_POST_Gethomepager, requestJson); |
| | | //} |
| | | /// <summary> |
| | | /// 获取住宅列表 |
| | | /// </summary> |
| | | public ResponsePackNew GetHomeList (HomeTypeEnum homeType = HomeTypeEnum.BUSPRO) |
| | | { |
| | | var requestJson = HttpUtil.GetSignRequestJson (new GetHomeListObj () { homeType = homeType.ToString () }); |
| | | return HttpUtil.RequestHttpsPost (NewAPI.API_POST_Gethomepager, requestJson); |
| | | } |
| | | /// <summary> |
| | | /// 获取住宅列表 |
| | | /// </summary> |
| | |
| | | isRemoteControl = mHome.isRemoteControl, |
| | | isBindGateway = mHome.isBindGateway, |
| | | regionUrl = mHome.regionUrl, |
| | | debugStaffUserId = mHome.debugStaffUserId, |
| | | debugPerm = mHome.debugPerm |
| | | }; |
| | | } |
| | | |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 调试人员管理 |
| | | /// <summary> |
| | | /// 添加调试人员 |
| | | /// </summary> |
| | | /// <param name="account">添加调试人员账号</param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew AddDebugStaff (string account) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object> (); |
| | | d.Add ("homeId", UserConfig.Instance.CurrentRegion.Id); |
| | | d.Add ("account", account); |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson (d); |
| | | return HttpUtil.RequestHttpsPostFroHome (NewAPI.API_POST_DebugStaff_ADD, requestJson); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除调试人员 |
| | | /// </summary> |
| | | /// <param name="account">添加调试人员账号</param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew DelDebugStaff () |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object> (); |
| | | d.Add ("homeId", UserConfig.Instance.CurrentRegion.Id); |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson (d); |
| | | return HttpUtil.RequestHttpsPostFroHome (NewAPI.API_POST_DebugStaff_DELETE, requestJson); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 添加调试人员 |
| | | /// </summary> |
| | | /// <param name="account">添加调试人员账号</param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew UpdateDebugPerm (bool debugPerm) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object> (); |
| | | d.Add ("homeId", UserConfig.Instance.CurrentRegion.Id); |
| | | d.Add ("debugPerm", debugPerm); |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson (d); |
| | | return HttpUtil.RequestHttpsPostFroHome (NewAPI.API_POST_DebugStaff_UPDATE, requestJson); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 新数据分享 |
| | | /// <summary> |
| | | /// 添加分享 |