PriceUpdateRequest.cs 737 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 PriceUpdateRequest : FccMessageBase
  11. {
  12. public PriceUpdateRequest(int fuelGrade, double newFuelPrice)
  13. {
  14. var tmp = new Dictionary<string, object>();
  15. tmp["Command"] = "PriceUpdate";
  16. tmp["FuelGrade"] = fuelGrade;
  17. tmp["NewFuelPrice"] = newFuelPrice;
  18. base.Parameters = tmp;
  19. }
  20. }
  21. }