using Edge.Core.Parser.BinaryParser.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
namespace VeederRoot_ATG_Console.MessageEntity.Outgoing
{
///
/// SOH + SecurityCode(optional) + FunctionCode + DataField(optional)
///
public abstract class OutgoingMessageBase : MessageBase
{
///
/// Init an outgoing message, 3 parameters construct a complete FunctionCode, like i20101, S50500
///
/// Display or Command
/// Function code, 3 digts
/// 2 digits with ASCII encoding chars, like 00 in S50500, if input null, then PadRight with two '0'
public OutgoingMessageBase(MessageFormat messageFormat,
FuncCode functionCode, string functionCodeAppendix)
{
base.FunctionCode =
new Tuple(
messageFormat,
functionCode,
functionCodeAppendix);
}
[EnumerableFormat(6, -9998)]
public List SecurityCode { get; set; }
[EnumerableFormat("%cascade", -8000)]
public List DataField { get; set; }
}
}