@@ 11793-11801 (lines=9) @@ | ||
11790 | self.Priority = 0 |
|
11791 | self._freeze = True |
|
11792 | ||
11793 | def to_binary(self): |
|
11794 | packet = [] |
|
11795 | packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
|
11796 | packet.append(uabin.Primitives.Double.pack(self.RequestedPublishingInterval)) |
|
11797 | packet.append(uabin.Primitives.UInt32.pack(self.RequestedLifetimeCount)) |
|
11798 | packet.append(uabin.Primitives.UInt32.pack(self.RequestedMaxKeepAliveCount)) |
|
11799 | packet.append(uabin.Primitives.UInt32.pack(self.MaxNotificationsPerPublish)) |
|
11800 | packet.append(uabin.Primitives.Byte.pack(self.Priority)) |
|
11801 | return b''.join(packet) |
|
11802 | ||
11803 | @staticmethod |
|
11804 | def from_binary(data): |
|
@@ 11585-11593 (lines=9) @@ | ||
11582 | self.Priority = 0 |
|
11583 | self._freeze = True |
|
11584 | ||
11585 | def to_binary(self): |
|
11586 | packet = [] |
|
11587 | packet.append(uabin.Primitives.Double.pack(self.RequestedPublishingInterval)) |
|
11588 | packet.append(uabin.Primitives.UInt32.pack(self.RequestedLifetimeCount)) |
|
11589 | packet.append(uabin.Primitives.UInt32.pack(self.RequestedMaxKeepAliveCount)) |
|
11590 | packet.append(uabin.Primitives.UInt32.pack(self.MaxNotificationsPerPublish)) |
|
11591 | packet.append(uabin.Primitives.Boolean.pack(self.PublishingEnabled)) |
|
11592 | packet.append(uabin.Primitives.Byte.pack(self.Priority)) |
|
11593 | return b''.join(packet) |
|
11594 | ||
11595 | @staticmethod |
|
11596 | def from_binary(data): |