|
@@ 13708-13722 (lines=15) @@
|
| 13705 |
|
self.DiagnosticInfos = [] |
| 13706 |
|
self._freeze = True |
| 13707 |
|
|
| 13708 |
|
def to_binary(self): |
| 13709 |
|
packet = [] |
| 13710 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
| 13711 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.AvailableSequenceNumbers))) |
| 13712 |
|
for fieldname in self.AvailableSequenceNumbers: |
| 13713 |
|
packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
| 13714 |
|
packet.append(uabin.Primitives.Boolean.pack(self.MoreNotifications)) |
| 13715 |
|
packet.append(self.NotificationMessage.to_binary()) |
| 13716 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
| 13717 |
|
for fieldname in self.Results: |
| 13718 |
|
packet.append(fieldname.to_binary()) |
| 13719 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 13720 |
|
for fieldname in self.DiagnosticInfos: |
| 13721 |
|
packet.append(fieldname.to_binary()) |
| 13722 |
|
return b''.join(packet) |
| 13723 |
|
|
| 13724 |
|
@staticmethod |
| 13725 |
|
def from_binary(data): |
|
@@ 8473-8486 (lines=14) @@
|
| 8470 |
|
self.FilterResult = ContentFilterResult() |
| 8471 |
|
self._freeze = True |
| 8472 |
|
|
| 8473 |
|
def to_binary(self): |
| 8474 |
|
packet = [] |
| 8475 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.QueryDataSets))) |
| 8476 |
|
for fieldname in self.QueryDataSets: |
| 8477 |
|
packet.append(fieldname.to_binary()) |
| 8478 |
|
packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint)) |
| 8479 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ParsingResults))) |
| 8480 |
|
for fieldname in self.ParsingResults: |
| 8481 |
|
packet.append(fieldname.to_binary()) |
| 8482 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 8483 |
|
for fieldname in self.DiagnosticInfos: |
| 8484 |
|
packet.append(fieldname.to_binary()) |
| 8485 |
|
packet.append(self.FilterResult.to_binary()) |
| 8486 |
|
return b''.join(packet) |
| 8487 |
|
|
| 8488 |
|
@staticmethod |
| 8489 |
|
def from_binary(data): |