|
@@ 1391-1402 (lines=12) @@
|
| 1388 |
|
self.DiscoveryUrls = [] |
| 1389 |
|
self._freeze = True |
| 1390 |
|
|
| 1391 |
|
def to_binary(self): |
| 1392 |
|
packet = [] |
| 1393 |
|
packet.append(uabin.Primitives.String.pack(self.ApplicationUri)) |
| 1394 |
|
packet.append(uabin.Primitives.String.pack(self.ProductUri)) |
| 1395 |
|
packet.append(self.ApplicationName.to_binary()) |
| 1396 |
|
packet.append(uabin.Primitives.UInt32.pack(self.ApplicationType.value)) |
| 1397 |
|
packet.append(uabin.Primitives.String.pack(self.GatewayServerUri)) |
| 1398 |
|
packet.append(uabin.Primitives.String.pack(self.DiscoveryProfileUri)) |
| 1399 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiscoveryUrls))) |
| 1400 |
|
for fieldname in self.DiscoveryUrls: |
| 1401 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 1402 |
|
return b''.join(packet) |
| 1403 |
|
|
| 1404 |
|
@staticmethod |
| 1405 |
|
def from_binary(data): |
|
@@ 7234-7244 (lines=11) @@
|
| 7231 |
|
self.UnsupportedUnitIds = [] |
| 7232 |
|
self._freeze = True |
| 7233 |
|
|
| 7234 |
|
def to_binary(self): |
| 7235 |
|
packet = [] |
| 7236 |
|
packet.append(uabin.Primitives.String.pack(self.OrganizationUri)) |
| 7237 |
|
packet.append(uabin.Primitives.String.pack(self.ProfileId)) |
| 7238 |
|
packet.append(uabin.Primitives.String.pack(self.ComplianceTool)) |
| 7239 |
|
packet.append(uabin.Primitives.DateTime.pack(self.ComplianceDate)) |
| 7240 |
|
packet.append(uabin.Primitives.UInt32.pack(self.ComplianceLevel.value)) |
| 7241 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.UnsupportedUnitIds))) |
| 7242 |
|
for fieldname in self.UnsupportedUnitIds: |
| 7243 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 7244 |
|
return b''.join(packet) |
| 7245 |
|
|
| 7246 |
|
@staticmethod |
| 7247 |
|
def from_binary(data): |