@@ 1197-1208 (lines=12) @@ | ||
1194 | self.DiscoveryUrls = [] |
|
1195 | self._freeze = True |
|
1196 | ||
1197 | def to_binary(self): |
|
1198 | packet = [] |
|
1199 | packet.append(uabin.Primitives.String.pack(self.ApplicationUri)) |
|
1200 | packet.append(uabin.Primitives.String.pack(self.ProductUri)) |
|
1201 | packet.append(self.ApplicationName.to_binary()) |
|
1202 | packet.append(uabin.Primitives.UInt32.pack(self.ApplicationType.value)) |
|
1203 | packet.append(uabin.Primitives.String.pack(self.GatewayServerUri)) |
|
1204 | packet.append(uabin.Primitives.String.pack(self.DiscoveryProfileUri)) |
|
1205 | packet.append(uabin.Primitives.Int32.pack(len(self.DiscoveryUrls))) |
|
1206 | for fieldname in self.DiscoveryUrls: |
|
1207 | packet.append(uabin.Primitives.String.pack(fieldname)) |
|
1208 | return b''.join(packet) |
|
1209 | ||
1210 | @staticmethod |
|
1211 | def from_binary(data): |
|
@@ 7437-7447 (lines=11) @@ | ||
7434 | ||
7435 | class SupportedProfile(FrozenClass): |
|
7436 | ''' |
|
7437 | :ivar OrganizationUri: |
|
7438 | :vartype OrganizationUri: String |
|
7439 | :ivar ProfileId: |
|
7440 | :vartype ProfileId: String |
|
7441 | :ivar ComplianceTool: |
|
7442 | :vartype ComplianceTool: String |
|
7443 | :ivar ComplianceDate: |
|
7444 | :vartype ComplianceDate: DateTime |
|
7445 | :ivar ComplianceLevel: |
|
7446 | :vartype ComplianceLevel: ComplianceLevel |
|
7447 | :ivar UnsupportedUnitIds: |
|
7448 | :vartype UnsupportedUnitIds: String |
|
7449 | ''' |
|
7450 |