private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketsResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Bucket", num + 1)) { response.Buckets.Add(BucketUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("Owner", num)) { response.Owner = OwnerUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketNotificationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("TopicConfiguration", num)) { response.TopicConfigurations.Add(TopicConfigurationUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("QueueConfiguration", num)) { response.QueueConfigurations.Add(QueueConfigurationUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("CloudFunctionConfiguration", num)) { response.LambdaFunctionConfigurations.Add(LambdaFunctionConfigurationUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketReplicationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Role", num)) { response.Configuration.Role = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Rule", num)) { response.Configuration.Rules.Add(ReplicationRuleUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, DeleteObjectsResponse response) { IWebResponseData responseData = context.get_ResponseData(); if (responseData.IsHeaderPresent(S3Constants.AmzHeaderRequestCharged)) { response.RequestCharged = RequestCharged.FindValue(responseData.GetHeaderValue(S3Constants.AmzHeaderRequestCharged)); } int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Deleted", num)) { response.DeletedObjects.Add(DeletedObjectUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("Error", num)) { response.DeleteErrors.Add(ErrorsItemUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetCORSConfigurationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("CORSRule", num)) { if (response.Configuration == null) { response.Configuration = new CORSConfiguration(); } response.Configuration.Rules.Add(CORSRuleUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketMetricsConfigurationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } response.MetricsConfiguration = new MetricsConfiguration(); while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Filter", num)) { response.MetricsConfiguration.MetricsFilter = new MetricsFilter { MetricsFilterPredicate = MetricsPredicateListFilterUnmarshaller.Instance.Unmarshall(context)[0] }; } else if (context.TestExpression("Id", num)) { response.MetricsConfiguration.MetricsId = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
public List <AnalyticsFilterPredicate> Unmarshall(XmlUnmarshallerContext context) { List <AnalyticsFilterPredicate> list = new List <AnalyticsFilterPredicate>(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Prefix", num)) { list.Add(new AnalyticsPrefixPredicate(StringUnmarshaller.get_Instance().Unmarshall(context))); } else if (context.TestExpression("Tag", num)) { list.Add(new AnalyticsTagPredicate(TagUnmarshaller.Instance.Unmarshall(context))); } else if (context.TestExpression("And", num)) { list.Add(new AnalyticsAndOperator(Unmarshall(context))); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(list); } } return(list); }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketVersioningResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Status", num)) { response.VersioningConfig.Status = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("MfaDelete", num)) { response.VersioningConfig.EnableMfaDelete = string.Equals(StringUnmarshaller.GetInstance().Unmarshall(context), "Enabled"); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, CompleteMultipartUploadResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Location", num)) { response.Location = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Bucket", num)) { response.BucketName = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Key", num)) { response.Key = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("ETag", num)) { response.ETag = StringUnmarshaller.GetInstance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return; } } IWebResponseData responseData = context.get_ResponseData(); if (responseData.IsHeaderPresent("x-amz-expiration")) { response.Expiration = new Expiration(responseData.GetHeaderValue("x-amz-expiration")); } if (responseData.IsHeaderPresent("x-amz-server-side-encryption")) { response.ServerSideEncryptionMethod = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-server-side-encryption")); } if (responseData.IsHeaderPresent("x-amz-version-id")) { response.VersionId = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-version-id")); } if (responseData.IsHeaderPresent("x-amz-server-side-encryption-aws-kms-key-id")) { response.ServerSideEncryptionKeyManagementServiceKeyId = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-server-side-encryption-aws-kms-key-id")); } if (responseData.IsHeaderPresent(S3Constants.AmzHeaderRequestCharged)) { response.RequestCharged = RequestCharged.FindValue(responseData.GetHeaderValue(S3Constants.AmzHeaderRequestCharged)); } }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListObjectsResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("IsTruncated", num)) { response.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("NextMarker", num)) { response.NextMarker = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Contents", num)) { S3Object s3Object = ContentsItemUnmarshaller.Instance.Unmarshall(context); s3Object.BucketName = response.Name; response.S3Objects.Add(s3Object); } else if (context.TestExpression("Name", num)) { response.Name = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Prefix", num)) { response.Prefix = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Delimiter", num)) { response.Delimiter = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("MaxKeys", num)) { response.MaxKeys = IntUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("CommonPrefixes", num)) { string text = CommonPrefixesItemUnmarshaller.Instance.Unmarshall(context); if (text != null) { response.CommonPrefixes.Add(text); } } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketInventoryConfigurationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } response.InventoryConfiguration = new InventoryConfiguration(); while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Destination", num)) { response.InventoryConfiguration.Destination = InventoryDestinationUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("IsEnabled", num)) { response.InventoryConfiguration.IsEnabled = BoolUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Filter", num)) { response.InventoryConfiguration.InventoryFilter = InventoryFilterUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("Id", num)) { response.InventoryConfiguration.InventoryId = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("IncludedObjectVersions", num)) { response.InventoryConfiguration.IncludedObjectVersions = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Field", num + 1)) { response.InventoryConfiguration.InventoryOptionalFields.Add(StringUnmarshaller.get_Instance().Unmarshall(context)); } else if (context.TestExpression("Schedule", num)) { response.InventoryConfiguration.Schedule = InventoryScheduleUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, AssumeRoleResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("AssumedRoleUser", num)) { AssumedRoleUserUnmarshaller instance = AssumedRoleUserUnmarshaller.Instance; response.AssumedRoleUser = instance.Unmarshall(context); } else if (context.TestExpression("Credentials", num)) { CredentialsUnmarshaller instance2 = CredentialsUnmarshaller.Instance; response.Credentials = instance2.Unmarshall(context); } else if (context.TestExpression("PackedPolicySize", num)) { IntUnmarshaller instance3 = IntUnmarshaller.get_Instance(); response.PackedPolicySize = instance3.Unmarshall(context); } } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetCallerIdentityResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Account", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); response.Account = instance.Unmarshall(context); } else if (context.TestExpression("Arn", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); response.Arn = instance2.Unmarshall(context); } else if (context.TestExpression("UserId", num)) { StringUnmarshaller instance3 = StringUnmarshaller.get_Instance(); response.UserId = instance3.Unmarshall(context); } } } }
public List <LifecycleFilterPredicate> Unmarshall(XmlUnmarshallerContext context) { List <LifecycleFilterPredicate> list = new List <LifecycleFilterPredicate>(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Prefix", num)) { string prefix = StringUnmarshaller.get_Instance().Unmarshall(context); list.Add(new LifecyclePrefixPredicate { Prefix = prefix }); } if (context.TestExpression("Tag", num)) { Tag tag = TagUnmarshaller.Instance.Unmarshall(context); list.Add(new LifecycleTagPredicate { Tag = tag }); } if (context.TestExpression("And", num)) { list.Add(new LifecycleAndOperator { Operands = Unmarshall(context) }); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(list); } } return(list); }
private static void UnmarshallResult(XmlUnmarshallerContext context, AssumeRoleWithSAMLResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("AssumedRoleUser", num)) { AssumedRoleUserUnmarshaller instance = AssumedRoleUserUnmarshaller.Instance; response.AssumedRoleUser = instance.Unmarshall(context); } else if (context.TestExpression("Audience", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); response.Audience = instance2.Unmarshall(context); } else if (context.TestExpression("Credentials", num)) { CredentialsUnmarshaller instance3 = CredentialsUnmarshaller.Instance; response.Credentials = instance3.Unmarshall(context); } else if (context.TestExpression("Issuer", num)) { StringUnmarshaller instance4 = StringUnmarshaller.get_Instance(); response.Issuer = instance4.Unmarshall(context); } else if (context.TestExpression("NameQualifier", num)) { StringUnmarshaller instance5 = StringUnmarshaller.get_Instance(); response.NameQualifier = instance5.Unmarshall(context); } else if (context.TestExpression("PackedPolicySize", num)) { IntUnmarshaller instance6 = IntUnmarshaller.get_Instance(); response.PackedPolicySize = instance6.Unmarshall(context); } else if (context.TestExpression("Subject", num)) { StringUnmarshaller instance7 = StringUnmarshaller.get_Instance(); response.Subject = instance7.Unmarshall(context); } else if (context.TestExpression("SubjectType", num)) { StringUnmarshaller instance8 = StringUnmarshaller.get_Instance(); response.SubjectType = instance8.Unmarshall(context); } } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, CopyPartResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("ETag", num)) { response.ETag = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("LastModified", num)) { response.LastModified = DateTimeUnmarshaller.GetInstance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return; } } IWebResponseData responseData = context.get_ResponseData(); if (responseData.IsHeaderPresent("x-amz-copy-source-version-id")) { response.CopySourceVersionId = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-copy-source-version-id")); } if (responseData.IsHeaderPresent("x-amz-server-side-encryption")) { response.ServerSideEncryptionMethod = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-server-side-encryption")); } if (responseData.IsHeaderPresent("x-amz-server-side-encryption-aws-kms-key-id")) { response.ServerSideEncryptionKeyManagementServiceKeyId = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-server-side-encryption-aws-kms-key-id")); } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketLocationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = 1; while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("LocationConstraint", num)) { response.Location = StringUnmarshaller.GetInstance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketWebsiteResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } response.WebsiteConfiguration = new WebsiteConfiguration(); while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("RedirectAllRequestsTo", num)) { response.WebsiteConfiguration.RedirectAllRequestsTo = RoutingRuleRedirectUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("IndexDocument/Suffix", num)) { response.WebsiteConfiguration.IndexDocumentSuffix = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("ErrorDocument/Key", num)) { response.WebsiteConfiguration.ErrorDocument = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("RoutingRule", num + 1)) { response.WebsiteConfiguration.RoutingRules.Add(RoutingRuleUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketInventoryConfigurationsResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("ContinuationToken", num)) { response.Token = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("InventoryConfiguration", num)) { response.InventoryConfigurationList.Add(InventoryConfigurationUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("IsTruncated", num)) { response.IsTruncated = BoolUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("NextContinuationToken", num)) { response.NextToken = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetACLResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Owner", num)) { if (response.AccessControlList == null) { response.AccessControlList = new S3AccessControlList(); } response.AccessControlList.Owner = OwnerUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("Grant", num + 1)) { if (response.AccessControlList == null) { response.AccessControlList = new S3AccessControlList(); } response.AccessControlList.Grants.Add(GrantUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketLoggingResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("LoggingEnabled", num)) { response.BucketLoggingConfig = LoggingEnabledUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketRequestPaymentResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Payer", num)) { response.Payer = StringUnmarshaller.GetInstance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetObjectTaggingResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 2; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Tag", num)) { response.Tagging.Add(TagUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetSessionTokenResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if ((context.get_IsStartElement() || context.get_IsAttribute()) && context.TestExpression("Credentials", num)) { CredentialsUnmarshaller instance = CredentialsUnmarshaller.Instance; response.Credentials = instance.Unmarshall(context); } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, DecodeAuthorizationMessageResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if ((context.get_IsStartElement() || context.get_IsAttribute()) && context.TestExpression("DecodedMessage", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); response.DecodedMessage = instance.Unmarshall(context); } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListObjectsByTagsResponse response) { int num = context.get_CurrentDepth(); if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Bucket", num)) { response.BucketName = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("ContinuationToken", num)) { response.ContinuationToken = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("NextContinuationToken", num)) { response.NextContinuationToken = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("MaxKeys", num)) { response.MaxKeys = IntUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("IsTruncated", num)) { response.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("EncodingType", num)) { response.EncodingType = EncodingType.FindValue(StringUnmarshaller.GetInstance().Unmarshall(context)); } else if (context.TestExpression("Contents", num)) { response.Contents.Add(TaggedResourceUnmarshaller.Instance.Unmarshall(context)); } } } }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { GetSessionTokenResponse getSessionTokenResponse = new GetSessionTokenResponse(); context.Read(); int currentDepth = context.get_CurrentDepth(); while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement()) { if (context.TestExpression("GetSessionTokenResult", 2)) { UnmarshallResult(context, getSessionTokenResponse); } else if (context.TestExpression("ResponseMetadata", 2)) { getSessionTokenResponse.set_ResponseMetadata(ResponseMetadataUnmarshaller.get_Instance().Unmarshall(context)); } } } return(getSessionTokenResponse); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DecodeAuthorizationMessageResponse decodeAuthorizationMessageResponse = new DecodeAuthorizationMessageResponse(); context.Read(); int currentDepth = context.get_CurrentDepth(); while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement()) { if (context.TestExpression("DecodeAuthorizationMessageResult", 2)) { UnmarshallResult(context, decodeAuthorizationMessageResponse); } else if (context.TestExpression("ResponseMetadata", 2)) { decodeAuthorizationMessageResponse.set_ResponseMetadata(ResponseMetadataUnmarshaller.get_Instance().Unmarshall(context)); } } } return(decodeAuthorizationMessageResponse); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { AssumeRoleWithWebIdentityResponse assumeRoleWithWebIdentityResponse = new AssumeRoleWithWebIdentityResponse(); context.Read(); int currentDepth = context.get_CurrentDepth(); while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement()) { if (context.TestExpression("AssumeRoleWithWebIdentityResult", 2)) { UnmarshallResult(context, assumeRoleWithWebIdentityResponse); } else if (context.TestExpression("ResponseMetadata", 2)) { assumeRoleWithWebIdentityResponse.set_ResponseMetadata(ResponseMetadataUnmarshaller.get_Instance().Unmarshall(context)); } } } return(assumeRoleWithWebIdentityResponse); }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListPartsResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Bucket", num)) { response.BucketName = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Key", num)) { response.Key = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("UploadId", num)) { response.UploadId = StringUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("PartNumberMarker", num)) { response.PartNumberMarker = IntUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("NextPartNumberMarker", num)) { response.NextPartNumberMarker = IntUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("MaxParts", num)) { response.MaxParts = IntUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("IsTruncated", num)) { response.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context); } else if (context.TestExpression("Part", num)) { response.Parts.Add(PartDetailUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("Initiator", num)) { response.Initiator = InitiatorUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("Owner", num)) { response.Owner = OwnerUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("StorageClass", num)) { response.StorageClass = StringUnmarshaller.GetInstance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return; } } IWebResponseData responseData = context.get_ResponseData(); if (responseData.IsHeaderPresent("x-amz-abort-date")) { response.AbortDate = S3Transforms.ToDateTime(responseData.GetHeaderValue("x-amz-abort-date")); } if (responseData.IsHeaderPresent("x-amz-abort-rule-id")) { response.AbortRuleId = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-abort-rule-id")); } if (responseData.IsHeaderPresent(S3Constants.AmzHeaderRequestCharged)) { response.RequestCharged = RequestCharged.FindValue(responseData.GetHeaderValue(S3Constants.AmzHeaderRequestCharged)); } }