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