@@ 11803-11812 (lines=10) @@ | ||
11800 | packet.append(uabin.Primitives.Byte.pack(self.Priority)) |
|
11801 | return b''.join(packet) |
|
11802 | ||
11803 | @staticmethod |
|
11804 | def from_binary(data): |
|
11805 | obj = ModifySubscriptionParameters() |
|
11806 | self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
|
11807 | self.RequestedPublishingInterval = uabin.Primitives.Double.unpack(data) |
|
11808 | self.RequestedLifetimeCount = uabin.Primitives.UInt32.unpack(data) |
|
11809 | self.RequestedMaxKeepAliveCount = uabin.Primitives.UInt32.unpack(data) |
|
11810 | self.MaxNotificationsPerPublish = uabin.Primitives.UInt32.unpack(data) |
|
11811 | self.Priority = uabin.Primitives.Byte.unpack(data) |
|
11812 | return obj |
|
11813 | ||
11814 | def __str__(self): |
|
11815 | return 'ModifySubscriptionParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
@@ 11595-11604 (lines=10) @@ | ||
11592 | packet.append(uabin.Primitives.Byte.pack(self.Priority)) |
|
11593 | return b''.join(packet) |
|
11594 | ||
11595 | @staticmethod |
|
11596 | def from_binary(data): |
|
11597 | obj = CreateSubscriptionParameters() |
|
11598 | self.RequestedPublishingInterval = uabin.Primitives.Double.unpack(data) |
|
11599 | self.RequestedLifetimeCount = uabin.Primitives.UInt32.unpack(data) |
|
11600 | self.RequestedMaxKeepAliveCount = uabin.Primitives.UInt32.unpack(data) |
|
11601 | self.MaxNotificationsPerPublish = uabin.Primitives.UInt32.unpack(data) |
|
11602 | self.PublishingEnabled = uabin.Primitives.Boolean.unpack(data) |
|
11603 | self.Priority = uabin.Primitives.Byte.unpack(data) |
|
11604 | return obj |
|
11605 | ||
11606 | def __str__(self): |
|
11607 | return 'CreateSubscriptionParameters(' + 'RequestedPublishingInterval:' + str(self.RequestedPublishingInterval) + ', ' + \ |