/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateStackResponse response = new UpdateStackResponse(); return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateStackResponse 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("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StackId = unmarshaller.Unmarshall(context); continue; } } } return; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateStackResponse response = new UpdateStackResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("UpdateStackResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
public static UpdateStackResponse Unmarshall(UnmarshallerContext context) { UpdateStackResponse updateStackResponse = new UpdateStackResponse(); updateStackResponse.HttpResponse = context.HttpResponse; return(updateStackResponse); }
public static UpdateStackResponse Unmarshall(UnmarshallerContext context) { UpdateStackResponse updateStackResponse = new UpdateStackResponse(); updateStackResponse.HttpResponse = context.HttpResponse; updateStackResponse.RequestId = context.StringValue("UpdateStack.RequestId"); updateStackResponse.StackId = context.StringValue("UpdateStack.StackId"); return(updateStackResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateStackResponse response = new UpdateStackResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Stack", targetDepth)) { var unmarshaller = StackUnmarshaller.Instance; response.Stack = unmarshaller.Unmarshall(context); continue; } } return(response); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateStackResponse response = new UpdateStackResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("UpdateStackResult", 2)) { response.UpdateStackResult = UpdateStackResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }