|
@@ 5739-5749 (lines=11) @@
|
| 5736 |
|
packet.append(self.TypeDefinition.to_binary()) |
| 5737 |
|
return b''.join(packet) |
| 5738 |
|
|
| 5739 |
|
@staticmethod |
| 5740 |
|
def from_binary(data): |
| 5741 |
|
obj = ReferenceDescription() |
| 5742 |
|
obj.ReferenceTypeId = NodeId.from_binary(data) |
| 5743 |
|
self.IsForward = uabin.Primitives.Boolean.unpack(data) |
| 5744 |
|
obj.NodeId = ExpandedNodeId.from_binary(data) |
| 5745 |
|
obj.BrowseName = QualifiedName.from_binary(data) |
| 5746 |
|
obj.DisplayName = LocalizedText.from_binary(data) |
| 5747 |
|
self.NodeClass = NodeClass(uabin.Primitives.UInt32.unpack(data)) |
| 5748 |
|
obj.TypeDefinition = ExpandedNodeId.from_binary(data) |
| 5749 |
|
return obj |
| 5750 |
|
|
| 5751 |
|
def __str__(self): |
| 5752 |
|
return 'ReferenceDescription(' + 'ReferenceTypeId:' + str(self.ReferenceTypeId) + ', ' + \ |
|
@@ 4697-4707 (lines=11) @@
|
| 4694 |
|
packet.append(self.TypeDefinition.to_binary()) |
| 4695 |
|
return b''.join(packet) |
| 4696 |
|
|
| 4697 |
|
@staticmethod |
| 4698 |
|
def from_binary(data): |
| 4699 |
|
obj = AddNodesItem() |
| 4700 |
|
obj.ParentNodeId = ExpandedNodeId.from_binary(data) |
| 4701 |
|
obj.ReferenceTypeId = NodeId.from_binary(data) |
| 4702 |
|
obj.RequestedNewNodeId = ExpandedNodeId.from_binary(data) |
| 4703 |
|
obj.BrowseName = QualifiedName.from_binary(data) |
| 4704 |
|
self.NodeClass = NodeClass(uabin.Primitives.UInt32.unpack(data)) |
| 4705 |
|
obj.NodeAttributes = uabin.extensionobject_from_binary(data) |
| 4706 |
|
obj.TypeDefinition = ExpandedNodeId.from_binary(data) |
| 4707 |
|
return obj |
| 4708 |
|
|
| 4709 |
|
def __str__(self): |
| 4710 |
|
return 'AddNodesItem(' + 'ParentNodeId:' + str(self.ParentNodeId) + ', ' + \ |