예제 #1
0
 /// <summary> Called to create a EnquireLinkResp object </summary>
 /// <param name="defaultEncoding"></param>
 /// <param name="enquireLink"></param>
 /// <param name="commandStatus"></param>
 /// <returns> EnquireLinkResp </returns>
 public static EnquireLinkSmResp Create(DataCodings defaultEncoding,
                                        EnquireLinkSm enquireLink,
                                        CommandStatus commandStatus)
 {
     return(new EnquireLinkSmResp(defaultEncoding,
                                  commandStatus,
                                  enquireLink.Sequence));
 }
예제 #2
0
        /// <summary> Called to create a new EnquireLink object </summary>
        /// <param name="defaultEncoding"></param>
        /// <param name="buf"></param>
        /// <param name="offset"></param>
        /// <returns> EnquireLink </returns>
        public static EnquireLinkSm Create(DataCodings defaultEncoding,
                                           SmppBuffer buf,
                                           ref int offset)
        {
            var enquireLink = new EnquireLinkSm(defaultEncoding);

            try
            {
                buf.ExtractHeader(enquireLink,
                                  ref offset);
            }

            catch { enquireLink = null; }

            return(enquireLink);
        }