Ejemplo n.º 1
0
        /// <summary> Called to return the PDU for this type of object </summary>
        /// <returns> byte[] </returns>
        public byte[] GetPDU()
        {
            var tmpBuff = new SmppBuffer(DefaultEncoding,
                                         this);

            tmpBuff.AddCString(MessageId);

            if (Optional.Count > 0)
            {
                tmpBuff.AddTLVCollection(Optional);
            }

            tmpBuff.AddFinalLength();

            return(tmpBuff.Buffer);
        }