Beispiel #1
0
        /// <summary> Called to create a CancelSmResp object </summary>
        /// <param name="defaultEncoding"></param>
        /// <param name="buf"></param>
        /// <param name="offset"></param>
        /// <returns> CancelSmResp </returns>
        internal static CancelSmResp Create(DataCodings defaultEncoding, SmppBuffer buf, ref int offset)
        {
            CancelSmResp cancelSmResp = new CancelSmResp(defaultEncoding);

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

            catch
            {
                cancelSmResp = null;
            }

            return(cancelSmResp);
        }
Beispiel #2
0
        /// <summary> Called to create a CancelSmResp object </summary>
        /// <param name="defaultEncoding"></param>
        /// <param name="buf"></param>
        /// <param name="offset"></param>
        /// <returns> CancelSmResp </returns>
        internal static CancelSmResp Create(DataCodings defaultEncoding, SmppBuffer buf, ref int offset)
        {
            CancelSmResp cancelSmResp = new CancelSmResp(defaultEncoding);

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

            catch
            {
                cancelSmResp = null;
            }

            return cancelSmResp;
        }
Beispiel #3
0
        /// <summary> Called to fire the cancel response pdu event </summary>
        /// <param name="data"></param>
        internal void OnCancelSmResp(CancelSmResp data)
        {
            try
            {
                if (CancelSmRespEvent != null)
                {
                    CancelSmRespEvent(this, data);
                }
            }

            catch
            {
            }
        }