Exemplo n.º 1
0
 /// <summary> Constructor </summary>
 private UserData()
 {
     _ShortMessage = new List<byte>();
     Headers = new UserDataHeaderCollection();
 }
Exemplo n.º 2
0
        /// <summary> Called to add a user data header collection to the buffer </summary>
        /// <param name="userDataHeaderCollection"></param>
        public void AddUserDataHeaderCollection(UserDataHeaderCollection userDataHeaderCollection)
        {
            if (userDataHeaderCollection.Count > 0)
            {
                SmppBuffer tmpBuff = new SmppBuffer(DefaultEncoding);

                foreach (UserDataHeader header in userDataHeaderCollection)
                {
                    tmpBuff.AddUserDataHeader(header);
                }

                AddByte(Convert.ToByte(tmpBuff.Length));
                AddSmppBuffer(tmpBuff);
            }
        }