internal override void Serialize(PduWriter writer) { writer.WriteCStringAscii(SystemId, 1, 15); writer.WriteCStringAscii(Password, 0, 8); writer.WriteCStringAscii(SystemType, 0, 12); writer.WriteByte((byte)InterfaceVersion); writer.WriteByte((byte)AddrTon); writer.WriteByte((byte)AddrNpi); writer.WriteCStringAscii(AddressRange, 0, 40); }
internal override void Serialize(PduWriter writer) { writer.WriteCStringAscii(ServiceType, 0, 5); writer.WriteByte((byte)SourceTon); writer.WriteByte((byte)SourceNpi); writer.WriteCStringAscii(SourceAddr, 0, 20); writer.WriteByte((byte)DestTon); writer.WriteByte((byte)DestNpi); writer.WriteCStringAscii(DestAddr, 0, 20); writer.WriteByte((byte)EsmClass); writer.WriteByte((byte)ProtocolId); writer.WriteByte((byte)PriorityFlag); writer.WriteCStringAscii(ScheduleDeliveryTime, 0, 16); writer.WriteCStringAscii(ValidityPeriod, 0, 16); writer.WriteByte((byte)RegisteredDelivery); writer.WriteByte(ReplaceIfPresent); writer.WriteByte((byte)DataCoding); writer.WriteByte(DefaultMessageId); writer.WriteByte((byte)ShortMessage.Length); writer.WriteBytes(ShortMessage); }
internal override void Serialize(PduWriter writer) { writer.WriteCStringAscii(MessageId, 0, 15); }