internal BodyPdu(ByteBuilder bb, ref int StartPosition)
            {
                _ServiceType        = SmppServiceType.Default;
                _SourceAddress      = string.Empty;
                _DestinationAddress = string.Empty;
                _EsmClass           = new BitBuilder();
                _RegisteredDelivery = new BitBuilder();
                _ShortMessage       = new SmppString();
                _ServiceType        =
                    SmppServiceType.FromValue(
                        SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0)));
                _SourceAddressTon      = bb.ReadByte(ref StartPosition);
                _SourceAddressNpi      = bb.ReadByte(ref StartPosition);
                _SourceAddress         = SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0));
                _DestinationAddressTon = bb.ReadByte(ref StartPosition);
                _DestinationAddressNpi = bb.ReadByte(ref StartPosition);
                _DestinationAddress    = SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0));
                _EsmClass.Value        = bb.ReadByte(ref StartPosition);
                _ProtocolId            = bb.ReadByte(ref StartPosition);
                _PriorityFlag          = bb.ReadByte(ref StartPosition);
                _ScheduleDeliveryTime  =
                    new SmppDateTime(SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0)));
                _ValidityPeriod =
                    new SmppDateTime(SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0)));
                _RegisteredDelivery.Value = bb.ReadByte(ref StartPosition);
                _ReplaceIfPresent         = bb.ReadByte(ref StartPosition);
                _ShortMessage.DataCoding  = SmppDataCoding.FromValue(bb.ReadByte(ref StartPosition));
                _SmDefaultMessageId       = bb.ReadByte(ref StartPosition);
                byte length = bb.ReadByte(ref StartPosition);

                _ShortMessage.Value = bb.ReadBytes(ref StartPosition, length);
            }
Beispiel #2
0
 internal BodyPdu(ByteBuilder bb, ref int StartPosition)
 {
     _MessageId        = string.Empty;
     _SourceAddress    = string.Empty;
     _MessageId        = SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0));
     _SourceAddressTon = bb.ReadByte(ref StartPosition);
     _SourceAddressNpi = bb.ReadByte(ref StartPosition);
     _SourceAddress    = SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref StartPosition, 0));
 }
Beispiel #3
0
 internal BodyPdu(ByteBuilder bb, ref int LastBytePosition)
 {
     _MessageId = string.Empty;
     _MessageId = SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref LastBytePosition, 0));
     _FinalDate =
         new SmppDateTime(SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref LastBytePosition, 0)));
     _MessageState = bb.ReadByte(ref LastBytePosition);
     _ErrorCode    = bb.ReadByte(ref LastBytePosition);
     LastBytePosition--;
 }
Beispiel #4
0
 internal BodyPdu(ByteBuilder PduByteArray, ref int StartPosition)
 {
     _SystemId         = string.Empty;
     _Password         = string.Empty;
     _SystemType       = string.Empty;
     _AddressRange     = string.Empty;
     _SystemId         = SmppDataCoding.BaseEncoding.GetString(PduByteArray.ReadBytesUntil(ref StartPosition, 0));
     _Password         = SmppDataCoding.BaseEncoding.GetString(PduByteArray.ReadBytesUntil(ref StartPosition, 0));
     _SystemType       = SmppDataCoding.BaseEncoding.GetString(PduByteArray.ReadBytesUntil(ref StartPosition, 0));
     _InterfaceVersion = PduByteArray.ReadByte(ref StartPosition);
     _AddressTon       = PduByteArray.ReadByte(ref StartPosition);
     _AddressNpi       = PduByteArray.ReadByte(ref StartPosition);
     _AddressRange     = SmppDataCoding.BaseEncoding.GetString(PduByteArray.ReadBytesUntil(ref StartPosition, 0));
 }
Beispiel #5
0
 internal BodyPdu(ByteBuilder bb, ref int LastBytePosition)
 {
     _MessageId = string.Empty;
     _MessageId = SmppDataCoding.BaseEncoding.GetString(bb.ReadBytesUntil(ref LastBytePosition, 0));
 }
Beispiel #6
0
 internal BodyPdu(ByteBuilder PduByteArray, ref int StartPosition)
 {
     _SystemId = string.Empty;
     _SystemId = SmppDataCoding.BaseEncoding.GetString(PduByteArray.ReadBytesUntil(ref StartPosition, 0));
 }