public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateConnectionResponse response = new CreateConnectionResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateConnectionResponse response = new CreateConnectionResponse(); context.Read(); response.CreateConnectionResult = CreateConnectionResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateConnectionResponse response = new CreateConnectionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ownerAccount", targetDepth)) { response.OwnerAccount = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("connectionId", targetDepth)) { response.ConnectionId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("connectionName", targetDepth)) { response.ConnectionName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("connectionState", targetDepth)) { response.ConnectionState = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { response.Region = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("location", targetDepth)) { response.Location = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("bandwidth", targetDepth)) { response.Bandwidth = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vlan", targetDepth)) { response.Vlan = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("partnerName", targetDepth)) { response.PartnerName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }
private static void UnmarshallResult(JsonUnmarshallerContext context,CreateConnectionResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("ownerAccount", targetDepth)) { context.Read(); response.OwnerAccount = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("connectionId", targetDepth)) { context.Read(); response.ConnectionId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("connectionName", targetDepth)) { context.Read(); response.ConnectionName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("connectionState", targetDepth)) { context.Read(); response.ConnectionState = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { context.Read(); response.Region = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("location", targetDepth)) { context.Read(); response.Location = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("bandwidth", targetDepth)) { context.Read(); response.Bandwidth = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("vlan", targetDepth)) { context.Read(); response.Vlan = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("partnerName", targetDepth)) { context.Read(); response.PartnerName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }