using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HengshanPaymentTerminal
{
///
/// Pump accumulator/totalizer data.
/// Normally volume, but sometimes amount total could be present.
///
public class TotalizerDataEventArgs : EventArgs
{
public TotalizerDataEventArgs(int nozzleNo, Tuple totalizer)
{
NozzleNo = nozzleNo;
Totalizer = totalizer;
}
public TotalizerDataEventArgs(Tuple totalizer)
{
Totalizer = totalizer;
}
public int NozzleNo { get; set; }
///
/// Totalizer data, Item1 is Amount Total, Item2 is Volume Total.
///
public Tuple Totalizer { get; set; }
}
}