示例#1
0
        /// <summary>
        /// <see cref="IParkingDeviceService.DoControlBatch(string,DeviceCommandType)"/>
        /// </summary>
        public async Task <bool> DoControlBatch(string parkSyscode, DeviceCommandType command)
        {
            var data = await _parkingDeviceApi.AppendFormatToHik("/api/pms/v1/deviceControl")
                       .SetHiKSecreity()
                       .PostAsync(new
            {
                parkSyscode,
                command = command.GetHashCode()
            })
                       .ReciveJsonResultAsync <HikVisionResponse>();

            return(data?.Success ?? false);
        }
 public async Task <bool> DoControlBatch([Required] string parkSyscode, DeviceCommandType command)
 {
     return(await _deviceService.DoControlBatch(parkSyscode, command));
 }