@@ 9976-10009 (lines=34) @@ | ||
9973 | __repr__ = __str__ |
|
9974 | ||
9975 | ||
9976 | class HistoryUpdateDetails(FrozenClass): |
|
9977 | ''' |
|
9978 | :ivar NodeId: |
|
9979 | :vartype NodeId: NodeId |
|
9980 | ''' |
|
9981 | ||
9982 | ua_types = { |
|
9983 | 'NodeId': 'NodeId', |
|
9984 | } |
|
9985 | ||
9986 | def __init__(self, binary=None): |
|
9987 | if binary is not None: |
|
9988 | self._binary_init(binary) |
|
9989 | self._freeze = True |
|
9990 | return |
|
9991 | self.NodeId = NodeId() |
|
9992 | self._freeze = True |
|
9993 | ||
9994 | def to_binary(self): |
|
9995 | packet = [] |
|
9996 | packet.append(self.NodeId.to_binary()) |
|
9997 | return b''.join(packet) |
|
9998 | ||
9999 | @staticmethod |
|
10000 | def from_binary(data): |
|
10001 | return HistoryUpdateDetails(data) |
|
10002 | ||
10003 | def _binary_init(self, data): |
|
10004 | self.NodeId = NodeId.from_binary(data) |
|
10005 | ||
10006 | def __str__(self): |
|
10007 | return 'HistoryUpdateDetails(' + 'NodeId:' + str(self.NodeId) + ')' |
|
10008 | ||
10009 | __repr__ = __str__ |
|
10010 | ||
10011 | ||
10012 | class UpdateDataDetails(FrozenClass): |
|
@@ 7969-8002 (lines=34) @@ | ||
7966 | __repr__ = __str__ |
|
7967 | ||
7968 | ||
7969 | class LiteralOperand(FrozenClass): |
|
7970 | ''' |
|
7971 | :ivar Value: |
|
7972 | :vartype Value: Variant |
|
7973 | ''' |
|
7974 | ||
7975 | ua_types = { |
|
7976 | 'Value': 'Variant', |
|
7977 | } |
|
7978 | ||
7979 | def __init__(self, binary=None): |
|
7980 | if binary is not None: |
|
7981 | self._binary_init(binary) |
|
7982 | self._freeze = True |
|
7983 | return |
|
7984 | self.Value = Variant() |
|
7985 | self._freeze = True |
|
7986 | ||
7987 | def to_binary(self): |
|
7988 | packet = [] |
|
7989 | packet.append(self.Value.to_binary()) |
|
7990 | return b''.join(packet) |
|
7991 | ||
7992 | @staticmethod |
|
7993 | def from_binary(data): |
|
7994 | return LiteralOperand(data) |
|
7995 | ||
7996 | def _binary_init(self, data): |
|
7997 | self.Value = Variant.from_binary(data) |
|
7998 | ||
7999 | def __str__(self): |
|
8000 | return 'LiteralOperand(' + 'Value:' + str(self.Value) + ')' |
|
8001 | ||
8002 | __repr__ = __str__ |
|
8003 | ||
8004 | ||
8005 | class AttributeOperand(FrozenClass): |