|
@@ 12798-12804 (lines=7) @@
|
| 12795 |
|
def from_binary(data): |
| 12796 |
|
return ModifySubscriptionParameters(data) |
| 12797 |
|
|
| 12798 |
|
def _binary_init(self, data): |
| 12799 |
|
self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
| 12800 |
|
self.RequestedPublishingInterval = uabin.Primitives.Double.unpack(data) |
| 12801 |
|
self.RequestedLifetimeCount = uabin.Primitives.UInt32.unpack(data) |
| 12802 |
|
self.RequestedMaxKeepAliveCount = uabin.Primitives.UInt32.unpack(data) |
| 12803 |
|
self.MaxNotificationsPerPublish = uabin.Primitives.UInt32.unpack(data) |
| 12804 |
|
self.Priority = uabin.Primitives.Byte.unpack(data) |
| 12805 |
|
|
| 12806 |
|
def __str__(self): |
| 12807 |
|
return 'ModifySubscriptionParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
@@ 12570-12576 (lines=7) @@
|
| 12567 |
|
def from_binary(data): |
| 12568 |
|
return CreateSubscriptionParameters(data) |
| 12569 |
|
|
| 12570 |
|
def _binary_init(self, data): |
| 12571 |
|
self.RequestedPublishingInterval = uabin.Primitives.Double.unpack(data) |
| 12572 |
|
self.RequestedLifetimeCount = uabin.Primitives.UInt32.unpack(data) |
| 12573 |
|
self.RequestedMaxKeepAliveCount = uabin.Primitives.UInt32.unpack(data) |
| 12574 |
|
self.MaxNotificationsPerPublish = uabin.Primitives.UInt32.unpack(data) |
| 12575 |
|
self.PublishingEnabled = uabin.Primitives.Boolean.unpack(data) |
| 12576 |
|
self.Priority = uabin.Primitives.Byte.unpack(data) |
| 12577 |
|
|
| 12578 |
|
def __str__(self): |
| 12579 |
|
return 'CreateSubscriptionParameters(' + 'RequestedPublishingInterval:' + str(self.RequestedPublishingInterval) + ', ' + \ |