Exemple #1
0
        /// <summary>
        /// 根据mac地址获取所有电源箱信息
        /// </summary>
        /// <param name="mac"></param>
        /// <returns></returns>
        public static GetSwitchAllPowerBoxInfoResponse GetSwitchPowerBoxInfo(string mac)
        {
            var req = new GetSwitchAllPowerBoxInfoRequest
            {
                Mac = mac
            };
            var res = NetworkModuleService.GetSwitchAllPowerBoxInfo(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
Exemple #2
0
 public BasicResponse <GetSwitchAllPowerBoxInfoResponse> GetSwitchAllPowerBoxInfo(GetSwitchAllPowerBoxInfoRequest request)
 {
     return(_NetworkModuleService.GetSwitchAllPowerBoxInfo(request));
 }