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