FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

increment sequence of commands as spec · python-smpplib/python-smpplib@df9c9db · GitHub

Commit df9c9db

Browse files
authored andcommitted
increment sequence of commands as spec
made need_sequence=True for the following commands: - BindTransmitter - BindReceiver - BindTransceiver - Unbind - DeliverySM - EnquireLink
1 parent ab70a51 commit df9c9db

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎smpplib/command.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class BindTransmitter(Command):
410410
)
411411

412412
def __init__(self, command, **kwargs):
413-
super(BindTransmitter, self).__init__(command, need_sequence=False, **kwargs)
413+
super(BindTransmitter, self).__init__(command, need_sequence=True, **kwargs)
414414

415415
self._set_vars(**(dict.fromkeys(self.params)))
416416
self.interface_version = consts.SMPP_VERSION_34
@@ -817,7 +817,7 @@ class DeliverSM(SubmitSM):
817817
)
818818

819819
def __init__(self, command, **kwargs):
820-
super(DeliverSM, self).__init__(command, need_sequence=False, **kwargs)
820+
super(DeliverSM, self).__init__(command, need_sequence=True, **kwargs)
821821
self._set_vars(**(dict.fromkeys(self.params)))
822822

823823

@@ -900,7 +900,7 @@ class Unbind(Command):
900900
params_order = ()
901901

902902
def __init__(self, command, **kwargs):
903-
super(Unbind, self).__init__(command, need_sequence=False, **kwargs)
903+
super(Unbind, self).__init__(command, need_sequence=True, **kwargs)
904904

905905

906906
class UnbindResp(Command):
@@ -919,7 +919,7 @@ class EnquireLink(Command):
919919
params_order = ()
920920

921921
def __init__(self, command, **kwargs):
922-
super(EnquireLink, self).__init__(command, need_sequence=False, **kwargs)
922+
super(EnquireLink, self).__init__(command, need_sequence=True, **kwargs)
923923

924924

925925
class EnquireLinkResp(Command):

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL