using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wayne.FDCPOSLibrary;
namespace Edge.Core.IndustryStandardInterface.Pump
{
///
/// Carried with the info for a pump or its nozzles state changed event.
///
public class FdcPumpControllerOnStateChangeEventArg : EventArgs
{
public FdcPumpControllerOnStateChangeEventArg(LogicalDeviceState newPumpState)
: this(newPumpState, null)
{
this.NewPumpState = newPumpState;
}
///
///
///
///
///
public FdcPumpControllerOnStateChangeEventArg(LogicalDeviceState newPumpState, LogicalNozzle stateChangedNozzle)
{
this.NewPumpState = newPumpState;
if (stateChangedNozzle != null)
this.StateChangedNozzles = new LogicalNozzle[] { stateChangedNozzle };
}
///
///
///
public LogicalDeviceState NewPumpState { get; }
public IEnumerable StateChangedNozzles { get; }
}
}