using System; using System.Collections.Generic; using System.Text; namespace VeederRoot_ATG_Console.MessageEntity.Outgoing { /// /// i|I20C /// public class QueryInTankMostRecentDeliveryReportRequest : OutgoingMessageBase { /// /// /// /// /// 0 indicates all tanks public QueryInTankMostRecentDeliveryReportRequest(MessageFormat messageFormat , int tankNumber) : base(messageFormat, FuncCode.QueryInTankMostRecentDeliveryReport, tankNumber.ToString()) { if (tankNumber < 0 || tankNumber > 99) throw new ArgumentOutOfRangeException("Valid tank number is range from 0 to 99"); //base.FunctionCodeRaw = base.FunctionCodeRaw.Substring(0, 4) + tankNumber.ToString().PadLeft(2, '0'); } } }