Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/smpp-sharp-lib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'SmppServerLib/SmppPduGenericNack.cs')
-rw-r--r--SmppServerLib/SmppPduGenericNack.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/SmppServerLib/SmppPduGenericNack.cs b/SmppServerLib/SmppPduGenericNack.cs
new file mode 100644
index 0000000..7b277a7
--- /dev/null
+++ b/SmppServerLib/SmppPduGenericNack.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Flex.Cluster.Smpp
+{
+ public class SmppPduGenerickNack : SmppPdu
+ {
+ public SmppPduGenerickNack(uint sequenceId, SmppCommandStatus status)
+ : base(SmppCommandType.generic_nack, status, sequenceId) { }
+ public SmppPduGenerickNack(byte[] bytes) : this(bytes, (uint)bytes.Length) { }
+ public SmppPduGenerickNack(byte[] bytes, uint length)
+ : base(bytes, length)
+ {
+ if (CommandId != SmppCommandType.generic_nack) throw new Exception("Invaid command ID");
+ }
+ }
+}