using System; using System.Collections.Generic; namespace Global_Pump_Fdc.MessageEntity.Outgoing { /// <summary> /// NOZ1-n specifies the logical nozzle numbers that is allowed for filling. /// The transaction is used when a pump is authorized. /// E.g. if nozzle 1-3 is allowed, the transaction contains 1, 2, 3. /// </summary> public class PresetAmountRequest : FccMessageBase { /// <summary> /// /// </summary> /// <param name="pumpId"></param> /// <param name="sitewiseNozzleId"></param> /// <param name="authAmount"></param> public PresetAmountRequest(int pumpId, byte sitewiseNozzleId, decimal authAmount) { var tmp = new Dictionary<string, object>(); tmp["Command"] = "Authorize"; tmp["PumpId"] = pumpId; tmp["SitewiseNozzleId"] = sitewiseNozzleId; tmp["AuthAmount"] = authAmount; base.Parameters = tmp; } } }