diff options
Diffstat (limited to 'SmppServerLib/SmppPduReplaceSmResp.cs')
-rw-r--r-- | SmppServerLib/SmppPduReplaceSmResp.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SmppServerLib/SmppPduReplaceSmResp.cs b/SmppServerLib/SmppPduReplaceSmResp.cs new file mode 100644 index 0000000..8d93c91 --- /dev/null +++ b/SmppServerLib/SmppPduReplaceSmResp.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Flex.Cluster.Smpp +{ + public class SmppPduReplaceSmResp : SmppPdu + { + public SmppPduReplaceSmResp(uint sequenceId, SmppCommandStatus status) + : base(SmppCommandType.replace_sm_resp, status, sequenceId) + { + } + + public SmppPduReplaceSmResp(byte[] bytes) : this(bytes, (uint)bytes.Length) { } + public SmppPduReplaceSmResp(byte[] bytes, uint length) + : base(bytes, length) + { + if (CommandId != SmppCommandType.replace_sm_resp) throw new Exception("Invaid command ID"); + } + } +} |