PresetAmountRequest.cs 1000 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Global_Pump_Fdc.MessageEntity.Outgoing
  4. {
  5. /// <summary>
  6. /// NOZ1-n specifies the logical nozzle numbers that is allowed for filling.
  7. /// The transaction is used when a pump is authorized.
  8. /// E.g. if nozzle 1-3 is allowed, the transaction contains 1, 2, 3.
  9. /// </summary>
  10. public class PresetAmountRequest : FccMessageBase
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. /// <param name="pumpId"></param>
  16. /// <param name="sitewiseNozzleId"></param>
  17. /// <param name="authAmount"></param>
  18. public PresetAmountRequest(int pumpId, byte sitewiseNozzleId, decimal authAmount)
  19. {
  20. var tmp = new Dictionary<string, object>();
  21. tmp["Command"] = "Authorize";
  22. tmp["PumpId"] = pumpId;
  23. tmp["SitewiseNozzleId"] = sitewiseNozzleId;
  24. tmp["AuthAmount"] = authAmount;
  25. base.Parameters = tmp;
  26. }
  27. }
  28. }