public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSnapshotFromVolumeRecoveryPointResponse response = new CreateSnapshotFromVolumeRecoveryPointResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("SnapshotId", targetDepth)) { response.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeARN", targetDepth)) { response.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeRecoveryPointTime", targetDepth)) { response.VolumeRecoveryPointTime = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSnapshotFromVolumeRecoveryPointResponse response = new CreateSnapshotFromVolumeRecoveryPointResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSnapshotFromVolumeRecoveryPointResponse response = new CreateSnapshotFromVolumeRecoveryPointResponse(); context.Read(); response.CreateSnapshotFromVolumeRecoveryPointResult = CreateSnapshotFromVolumeRecoveryPointResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
private static void UnmarshallResult(JsonUnmarshallerContext context,CreateSnapshotFromVolumeRecoveryPointResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("SnapshotId", targetDepth)) { context.Read(); response.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeARN", targetDepth)) { context.Read(); response.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeRecoveryPointTime", targetDepth)) { context.Read(); response.VolumeRecoveryPointTime = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }