TotalizerDataEventArgs.cs 882 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace HengshanPaymentTerminal
  7. {
  8. /// <summary>
  9. /// Pump accumulator/totalizer data.
  10. /// Normally volume, but sometimes amount total could be present.
  11. /// </summary>
  12. public class TotalizerDataEventArgs : EventArgs
  13. {
  14. public TotalizerDataEventArgs(int nozzleNo, Tuple<long, long> totalizer)
  15. {
  16. NozzleNo = nozzleNo;
  17. Totalizer = totalizer;
  18. }
  19. public TotalizerDataEventArgs(Tuple<long, long> totalizer)
  20. {
  21. Totalizer = totalizer;
  22. }
  23. public int NozzleNo { get; set; }
  24. /// <summary>
  25. /// Totalizer data, Item1 is Amount Total, Item2 is Volume Total.
  26. /// </summary>
  27. public Tuple<long, long> Totalizer { get; set; }
  28. }
  29. }