Beispiel #1
0
        /// <summary>
        /// 获取分站电源箱信息
        /// </summary>
        /// <param name="add"></param>
        /// <param name="fzh"></param>
        /// <returns></returns>
        public static BatteryItem GetSubstationBatteryInfo(string add, string fzh)
        {
            var req = new GetSubstationBatteryInfoRequest()
            {
                Address = add,
                Fzh     = fzh
            };
            var res = PointDefineService.GetSubstationBatteryInfo(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
 public BasicResponse <Sys.Safety.DataContract.CommunicateExtend.BatteryItem> GetSubstationBatteryInfo(GetSubstationBatteryInfoRequest request)
 {
     return(_PointDefineService.GetSubstationBatteryInfo(request));
 }
Beispiel #3
0
        public BasicResponse <DataContract.CommunicateExtend.BatteryItem> GetSubstationBatteryInfo(GetSubstationBatteryInfoRequest request)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/PointDefine/GetSubstationBatteryInfo?token=" + Token, JSONHelper.ToJSONString(request));

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