コード例 #1
0
 /// <summary> Called to create a PduUnBindResp object </summary>
 /// <param name="defaultEncoding"></param>
 /// <param name="unBindSm"></param>
 /// <param name="commandStatus"></param>
 /// <returns> PduUnBindResp </returns>
 internal static UnBindSmResp Create(DataCodings defaultEncoding,
                                     UnBindSm unBindSm,
                                     CommandStatus commandStatus)
 {
     return(new UnBindSmResp(defaultEncoding,
                             commandStatus,
                             unBindSm.Sequence));
 }
コード例 #2
0
ファイル: UnBindSm.cs プロジェクト: automeas/SmppClient.Core
        /// <summary> Called to create a PduUnBind object </summary>
        /// <param name="defaultEncoding"></param>
        /// <param name="buf"></param>
        /// <param name="offset"></param>
        /// <returns> PduUnBind </returns>
        public static UnBindSm Create(DataCodings defaultEncoding,
                                      SmppBuffer buf,
                                      ref int offset)
        {
            var unBind = new UnBindSm(defaultEncoding);

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

            catch { unBind = null; }

            return(unBind);
        }