AuthorizeRequest.cs 732 B

12345678910111213141516171819202122
  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 AuthorizeRequest : FccMessageBase
  11. {
  12. public AuthorizeRequest(int pumpId, byte sitewiseNozzleId)
  13. {
  14. var tmp = new Dictionary<string, object>();
  15. tmp["Command"] = "Authorize";
  16. tmp["PumpId"] = pumpId;
  17. tmp["SitewiseNozzleId"] = sitewiseNozzleId;
  18. base.Parameters = tmp;
  19. }
  20. }
  21. }