| | |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 申请设备密钥 |
| | | /// </summary> |
| | | /// <param name="mac"></param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew ApplyDeviceSecret (string mac) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object> (); |
| | | d.Add ("supplier", "HDL"); |
| | | d.Add ("mac", mac); |
| | | d.Add ("spk", "BUSUDPGATEWAY"); |
| | | var requestJson = HttpUtil.GetSignRequestJson (d); |
| | | return HttpUtil.RequestHttpsPostFroHome (NewAPI.Api_Post_ApplyDeviceSecret, requestJson); |
| | | } |
| | | |
| | | //#region Kaede --设备功能—————————————————————————————————— |
| | | ///// <summary> |
| | | ///// 获取设备列表 |
| | |
| | | //} |
| | | |
| | | //#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; |
| | | } |
| | | } |
| | | } |