public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DecodeAuthorizationMessageResponse response = new DecodeAuthorizationMessageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("DecodeAuthorizationMessageResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DecodeAuthorizationMessageResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DecodedMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DecodedMessage = unmarshaller.Unmarshall(context); continue; } } } return; }
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); } } }
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) { DecodeAuthorizationMessageResponse response = new DecodeAuthorizationMessageResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("DecodeAuthorizationMessageResult", 2)) { response.DecodeAuthorizationMessageResult = DecodeAuthorizationMessageResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }