Exemplo n.º 1
0
 def update(self, state):
     """
     Set the local state of the delivery e.g. ACCEPTED, REJECTED, RELEASED.
     """
     obj2dat(self.local._data, pn_disposition_data(self.local._impl))
     obj2dat(self.local._annotations, pn_disposition_annotations(self.local._impl))
     obj2cond(self.local._condition, pn_disposition_condition(self.local._impl))
     pn_delivery_update(self._impl, state)
Exemplo n.º 2
0
 def update(self, state):
     """
     Set the local state of the delivery e.g. ACCEPTED, REJECTED, RELEASED.
     """
     obj2dat(self.local._data, pn_disposition_data(self.local._impl))
     obj2dat(self.local._annotations, pn_disposition_annotations(self.local._impl))
     obj2cond(self.local._condition, pn_disposition_condition(self.local._impl))
     pn_delivery_update(self._impl, state)
Exemplo n.º 3
0
    def update(self, state: Union[int, DispositionType]) -> None:
        """
        Set the local state of the delivery e.g. :const:`ACCEPTED`,
        :const:`REJECTED`, :const:`RELEASED`.

        :param state: State of delivery
        """
        obj2dat(self.local._data, pn_disposition_data(self.local._impl))
        obj2dat(self.local._annotations, pn_disposition_annotations(self.local._impl))
        obj2cond(self.local._condition, pn_disposition_condition(self.local._impl))
        pn_delivery_update(self._impl, state)