Terminal.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Dfs.WayneChina.IMisPlus.Models
  5. {
  6. /// <summary>
  7. /// Represents some basic setting of an IC card terminal.
  8. /// Max 32 terminals are supported by legacy iFuel system.
  9. /// </summary>
  10. public class Terminal
  11. {
  12. /// <summary>
  13. /// Id of the terminal.
  14. /// Sps Field: `PayDevID`
  15. /// </summary>
  16. public byte Id { get; set; }
  17. /// <summary>
  18. /// Type of the terminal, 1=UnionPay card, 2=IC card.
  19. /// Sps Field: `PayType`, type: byte.
  20. /// </summary>
  21. public byte PayMode { get; set; }
  22. /// <summary>
  23. /// The terminal number, should be the same as set on
  24. /// the terminal keyboard menu.
  25. /// Sps Field: `Address`, type: char(16).
  26. /// </summary>
  27. public string Address { get; set; }
  28. /// <summary>
  29. /// Communication protocol of the terminal.
  30. /// Sps Field: `Protocl`, type: byte.
  31. /// </summary>
  32. public byte ProtocolType { get; set; }
  33. }
  34. }