public UploadServerCertificateResult Unmarshall(UnmarshallerContext context) { UploadServerCertificateResult uploadServerCertificateResult = new UploadServerCertificateResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ServerCertificateMetadata", targetDepth)) { uploadServerCertificateResult.ServerCertificateMetadata = ServerCertificateMetadataUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(uploadServerCertificateResult); } } return(uploadServerCertificateResult); }
public ServerCertificate Unmarshall(UnmarshallerContext context) { ServerCertificate serverCertificate = new ServerCertificate(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ServerCertificateMetadata", targetDepth)) { serverCertificate.ServerCertificateMetadata = ServerCertificateMetadataUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CertificateBody", targetDepth)) { serverCertificate.CertificateBody = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CertificateChain", targetDepth)) { serverCertificate.CertificateChain = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(serverCertificate); } } return(serverCertificate); }
public ListServerCertificatesResult Unmarshall(UnmarshallerContext context) { ListServerCertificatesResult listServerCertificatesResult = new ListServerCertificatesResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ServerCertificateMetadataList/member", targetDepth)) { listServerCertificatesResult.ServerCertificateMetadataList.Add(ServerCertificateMetadataUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("IsTruncated", targetDepth)) { listServerCertificatesResult.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Marker", targetDepth)) { listServerCertificatesResult.Marker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(listServerCertificatesResult); } } return(listServerCertificatesResult); }