Пример #1
0
        /// <summary>
        /// 根据分站号获取所有电源箱信息
        /// </summary>
        /// <param name="fzh"></param>
        /// <returns></returns>
        public static GetSubstationAllPowerBoxInfoResponse GetSubstationPowerBoxInfo(string fzh)
        {
            var req = new GetSubstationAllPowerBoxInfoRequest
            {
                Fzh = fzh
            };
            var res = PointDefineService.GetSubstationAllPowerBoxInfo(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
 public BasicResponse <GetSubstationAllPowerBoxInfoResponse> GetSubstationAllPowerBoxInfo(GetSubstationAllPowerBoxInfoRequest request)
 {
     return(_PointDefineService.GetSubstationAllPowerBoxInfo(request));
 }
Пример #3
0
        public BasicResponse <GetSubstationAllPowerBoxInfoResponse> GetSubstationAllPowerBoxInfo(GetSubstationAllPowerBoxInfoRequest request)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/PointDefine/GetSubstationAllPowerBoxInfo?token=" + Token, JSONHelper.ToJSONString(request));

            return(JSONHelper.ParseJSONString <BasicResponse <GetSubstationAllPowerBoxInfoResponse> >(responseStr));
        }