Beispiel #1
0
        public static BasicResponse QueryDeviceInfoRequest(List <DeviceInfoRequestItem> deviceInfoRequestItems)
        {
            DeviceInfoRequest request = new DeviceInfoRequest();

            request.deviceInfoRequestItems = deviceInfoRequestItems;
            return(pointDefineService.QueryDeviceInfoRequest(request));
        }
Beispiel #2
0
        /// <summary>
        /// 下发获取分站基础信息
        /// </summary>
        /// <param name="fzh"></param>
        /// <param name="getSoftwareVersions"></param>
        /// <param name="getHardwareVersions"></param>
        /// <param name="getDeviceSoleCoding"></param>
        public static void QueryDeviceInfoRequest(string fzh, byte getSoftwareVersions, byte getHardwareVersions, byte getDeviceSoleCoding)
        {
            var req = new DeviceInfoRequest
            {
                deviceInfoRequestItems = new List <DeviceInfoRequestItem>()
                {
                    new DeviceInfoRequestItem()
                    {
                        Fzh         = Convert.ToUInt16(fzh),
                        controlType = 1
                    }
                }
            };
            var res = PointDefineService.QueryDeviceInfoRequest(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
        }
 public BasicResponse QueryDeviceInfoRequest(DeviceInfoRequest request)
 {
     return(_PointDefineService.QueryDeviceInfoRequest(request));
 }