@@ 4104-4119 (lines=16) @@ | ||
4101 | packet.append(uabin.Primitives.UInt32.pack(self.CancelCount)) |
|
4102 | return b''.join(packet) |
|
4103 | ||
4104 | @staticmethod |
|
4105 | def from_binary(data): |
|
4106 | return CancelResult(data) |
|
4107 | ||
4108 | def _binary_init(self, data): |
|
4109 | self.CancelCount = uabin.Primitives.UInt32.unpack(data) |
|
4110 | ||
4111 | def __str__(self): |
|
4112 | return 'CancelResult(' + 'CancelCount:' + str(self.CancelCount) + ')' |
|
4113 | ||
4114 | __repr__ = __str__ |
|
4115 | ||
4116 | ||
4117 | class CancelResponse(FrozenClass): |
|
4118 | ''' |
|
4119 | Cancels an outstanding request. |
|
4120 | ||
4121 | :ivar TypeId: |
|
4122 | :vartype TypeId: NodeId |
|
@@ 4189-4202 (lines=14) @@ | ||
4186 | 'SpecifiedAttributes': 'UInt32', |
|
4187 | 'DisplayName': 'LocalizedText', |
|
4188 | 'Description': 'LocalizedText', |
|
4189 | 'WriteMask': 'UInt32', |
|
4190 | 'UserWriteMask': 'UInt32', |
|
4191 | } |
|
4192 | ||
4193 | def __init__(self, binary=None): |
|
4194 | if binary is not None: |
|
4195 | self._binary_init(binary) |
|
4196 | self._freeze = True |
|
4197 | return |
|
4198 | self.SpecifiedAttributes = 0 |
|
4199 | self.DisplayName = LocalizedText() |
|
4200 | self.Description = LocalizedText() |
|
4201 | self.WriteMask = 0 |
|
4202 | self.UserWriteMask = 0 |
|
4203 | self._freeze = True |
|
4204 | ||
4205 | def to_binary(self): |