private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeVaultResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("VaultARN", targetDepth)) { context.Read(); response.VaultARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VaultName", targetDepth)) { context.Read(); response.VaultName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { context.Read(); response.CreationDate = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LastInventoryDate", targetDepth)) { context.Read(); response.LastInventoryDate = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NumberOfArchives", targetDepth)) { context.Read(); response.NumberOfArchives = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SizeInBytes", targetDepth)) { context.Read(); response.SizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeVaultResponse response = new DescribeVaultResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeVaultResponse response = new DescribeVaultResponse(); context.Read(); response.DescribeVaultResult = DescribeVaultResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeVaultResponse response = new DescribeVaultResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VaultARN", targetDepth)) { response.VaultARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VaultName", targetDepth)) { response.VaultName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { response.CreationDate = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LastInventoryDate", targetDepth)) { response.LastInventoryDate = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NumberOfArchives", targetDepth)) { response.NumberOfArchives = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SizeInBytes", targetDepth)) { response.SizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }