TotalizerDataEventArgs.cs 838 B

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