using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wayne_Pump_Dart.MessageEntity.Outgoing { /// /// 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. /// public class AllowedNozzleNumbersRequest : MessageBase { /// /// /// /// /// /// range from 0x00 to 0x0F public AllowedNozzleNumbersRequest(byte address, byte blockSeqNumber, IEnumerable nozzlePhysicalIds) { base.Adrs = address; base.BlockSeqNumber = blockSeqNumber; base.ControlCharacter = ControlCharacter.DATA; base.TransactionDatas = new List() { new TransactionData() { TransactionNumber = 0x02, RawData = nozzlePhysicalIds.ToList() } }; } } }