| @@ 7667-7696 (lines=30) @@ | ||
| 7664 | __repr__ = __str__ |
|
| 7665 | ||
| 7666 | ||
| 7667 | class ElementOperand(FrozenClass): |
|
| 7668 | ''' |
|
| 7669 | :ivar Index: |
|
| 7670 | :vartype Index: UInt32 |
|
| 7671 | ''' |
|
| 7672 | ||
| 7673 | ua_types = [ |
|
| 7674 | ||
| 7675 | ('Index', 'UInt32'), |
|
| 7676 | ] |
|
| 7677 | ||
| 7678 | def __init__(self): |
|
| 7679 | self.Index = 0 |
|
| 7680 | self._freeze = True |
|
| 7681 | ||
| 7682 | def to_binary(self): |
|
| 7683 | packet = [] |
|
| 7684 | packet.append(uabin.Primitives.UInt32.pack(self.Index)) |
|
| 7685 | return b''.join(packet) |
|
| 7686 | ||
| 7687 | @staticmethod |
|
| 7688 | def from_binary(data): |
|
| 7689 | obj = ElementOperand() |
|
| 7690 | self.Index = uabin.Primitives.UInt32.unpack(data) |
|
| 7691 | return obj |
|
| 7692 | ||
| 7693 | def __str__(self): |
|
| 7694 | return 'ElementOperand(' + 'Index:' + str(self.Index) + ')' |
|
| 7695 | ||
| 7696 | __repr__ = __str__ |
|
| 7697 | ||
| 7698 | ||
| 7699 | class LiteralOperand(FrozenClass): |
|
| @@ 4071-4100 (lines=30) @@ | ||
| 4068 | __repr__ = __str__ |
|
| 4069 | ||
| 4070 | ||
| 4071 | class CancelResult(FrozenClass): |
|
| 4072 | ''' |
|
| 4073 | :ivar CancelCount: |
|
| 4074 | :vartype CancelCount: UInt32 |
|
| 4075 | ''' |
|
| 4076 | ||
| 4077 | ua_types = [ |
|
| 4078 | ||
| 4079 | ('CancelCount', 'UInt32'), |
|
| 4080 | ] |
|
| 4081 | ||
| 4082 | def __init__(self): |
|
| 4083 | self.CancelCount = 0 |
|
| 4084 | self._freeze = True |
|
| 4085 | ||
| 4086 | def to_binary(self): |
|
| 4087 | packet = [] |
|
| 4088 | packet.append(uabin.Primitives.UInt32.pack(self.CancelCount)) |
|
| 4089 | return b''.join(packet) |
|
| 4090 | ||
| 4091 | @staticmethod |
|
| 4092 | def from_binary(data): |
|
| 4093 | obj = CancelResult() |
|
| 4094 | self.CancelCount = uabin.Primitives.UInt32.unpack(data) |
|
| 4095 | return obj |
|
| 4096 | ||
| 4097 | def __str__(self): |
|
| 4098 | return 'CancelResult(' + 'CancelCount:' + str(self.CancelCount) + ')' |
|
| 4099 | ||
| 4100 | __repr__ = __str__ |
|
| 4101 | ||
| 4102 | ||
| 4103 | class CancelResponse(FrozenClass): |
|
| @@ 3991-4020 (lines=30) @@ | ||
| 3988 | __repr__ = __str__ |
|
| 3989 | ||
| 3990 | ||
| 3991 | class CancelParameters(FrozenClass): |
|
| 3992 | ''' |
|
| 3993 | :ivar RequestHandle: |
|
| 3994 | :vartype RequestHandle: UInt32 |
|
| 3995 | ''' |
|
| 3996 | ||
| 3997 | ua_types = [ |
|
| 3998 | ||
| 3999 | ('RequestHandle', 'UInt32'), |
|
| 4000 | ] |
|
| 4001 | ||
| 4002 | def __init__(self): |
|
| 4003 | self.RequestHandle = 0 |
|
| 4004 | self._freeze = True |
|
| 4005 | ||
| 4006 | def to_binary(self): |
|
| 4007 | packet = [] |
|
| 4008 | packet.append(uabin.Primitives.UInt32.pack(self.RequestHandle)) |
|
| 4009 | return b''.join(packet) |
|
| 4010 | ||
| 4011 | @staticmethod |
|
| 4012 | def from_binary(data): |
|
| 4013 | obj = CancelParameters() |
|
| 4014 | self.RequestHandle = uabin.Primitives.UInt32.unpack(data) |
|
| 4015 | return obj |
|
| 4016 | ||
| 4017 | def __str__(self): |
|
| 4018 | return 'CancelParameters(' + 'RequestHandle:' + str(self.RequestHandle) + ')' |
|
| 4019 | ||
| 4020 | __repr__ = __str__ |
|
| 4021 | ||
| 4022 | ||
| 4023 | class CancelRequest(FrozenClass): |
|