| | |
| | | |
| | | namespace Shared |
| | | { |
| | | /// <summary> |
| | | /// 接口请求封装 |
| | | /// </summary> |
| | | public class HttpServerRequest |
| | | { |
| | | |
| | | #region ■ 变量声明___________________________ |
| | | /// <summary> |
| | | /// 通用方法 |
| | |
| | | } |
| | | return revertObj.Code; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 注册、登录部分 |
| | | |
| | | |
| | | /// <summary> |
| | | /// 通用 发送验证码方法 |
| | | /// </summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 绑定网关 |
| | | /// </summary> |
| | | /// <param name="mac"></param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew BindGateway (BindGatewayObj newGateway) |
| | | { |
| | | var requestJson = HttpUtil.GetSignRequestJson (newGateway); |
| | | return HttpUtil.RequestHttpsPostFroHome (NewAPI.API_POST_BindGateway, requestJson); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取刷新当前住宅的网关列表 |
| | | /// </summary> |
| | | public string GetHomeGatewayList() |
| | |
| | | } |
| | | return revertObj.Code; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取住宅下的成员账号 |
| | |
| | | { |
| | | var requestJson = HttpUtil.GetSignRequestJson(new GetMqttRemoteInfoObj() |
| | | { |
| | | attachClientId = attachClientId, |
| | | attachClientId = attachClientId + "L1", |
| | | homeType = HomeTypeEnum.BUSPRO.ToString() |
| | | }); |
| | | var revertObj = HttpUtil.RequestHttpsPost(NewAPI.API_POST_GetMqttRemoteInfo, requestJson, UserConfig.Instance.CurrentRegion.regionUrl); |