public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeSnapshotScheduleResponse response = new DescribeSnapshotScheduleResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeSnapshotScheduleResponse response = new DescribeSnapshotScheduleResponse(); context.Read(); response.DescribeSnapshotScheduleResult = DescribeSnapshotScheduleResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeSnapshotScheduleResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("VolumeARN", targetDepth)) { context.Read(); response.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StartAt", targetDepth)) { context.Read(); response.StartAt = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RecurrenceInHours", targetDepth)) { context.Read(); response.RecurrenceInHours = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { context.Read(); response.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Timezone", targetDepth)) { context.Read(); response.Timezone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeSnapshotScheduleResponse response = new DescribeSnapshotScheduleResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VolumeARN", targetDepth)) { response.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StartAt", targetDepth)) { response.StartAt = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RecurrenceInHours", targetDepth)) { response.RecurrenceInHours = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { response.Description = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Timezone", targetDepth)) { response.Timezone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }