| | |
| | | return HttpUtil.RequestHttpsPost(NewAPI.API_POST_Member_UpdateMemberInfo, requestJson); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 标记2.0平台数据 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public bool Mark (string newHomeId) |
| | | { |
| | | Dictionary<string, object> dic = new Dictionary<string, object> (); |
| | | dic.Add ("homeId", newHomeId); |
| | | dic.Add ("mark", true); |
| | | var requestJson = HttpUtil.GetSignRequestJson (dic); |
| | | var revertObj = HttpUtil.RequestHttpsPost (NewAPI.API_Post_Mark, requestJson); |
| | | if (revertObj != null) { |
| | | if (revertObj.Code == "0") { |
| | | UserConfig.Instance.CurrentRegion.indiaIsAsyncDeviceMark = true; |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// 更新用户头像 |
| | | ///// </summary> |
| | |
| | | isBindGateway = mHome.isBindGateway, |
| | | regionUrl = mHome.regionUrl, |
| | | debugStaffUserId = mHome.debugStaffUserId, |
| | | debugPerm = mHome.debugPerm |
| | | debugPerm = mHome.debugPerm, |
| | | indiaIsAsyncDeviceMark = mHome.indiaIsAsyncDeviceMark |
| | | }; |
| | | } |
| | | |
| | |
| | | //} |
| | | |
| | | //#endregion |
| | | |
| | | /// <summary> |
| | | /// 修改设备备注 |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="homeId"></param> |
| | | /// <param name="name"></param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew EditDeviceName (string deviceId,string homeId,string name) |
| | | { |
| | | var d = new Dictionary<string, object> (); |
| | | d.Add ("deviceId", deviceId); |
| | | d.Add ("homeId", homeId); |
| | | d.Add ("name", name); |
| | | var requestJson = HttpUtil.GetSignRequestJson (d); |
| | | var pack = HttpUtil.RequestHttpsPostFroHome (NewAPI.Api_Post_EditDeviceName, requestJson); |
| | | return pack; |
| | | } |
| | | } |
| | | } |