public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVolumeRecoveryPointsResponse response = new ListVolumeRecoveryPointsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayARN", targetDepth)) { response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeRecoveryPointInfos", targetDepth)) { var unmarshaller = new ListUnmarshaller<VolumeRecoveryPointInfo,VolumeRecoveryPointInfoUnmarshaller>( VolumeRecoveryPointInfoUnmarshaller.GetInstance()); response.VolumeRecoveryPointInfos = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVolumeRecoveryPointsResponse response = new ListVolumeRecoveryPointsResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVolumeRecoveryPointsResponse response = new ListVolumeRecoveryPointsResponse(); context.Read(); response.ListVolumeRecoveryPointsResult = ListVolumeRecoveryPointsResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
private static void UnmarshallResult(JsonUnmarshallerContext context,ListVolumeRecoveryPointsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("GatewayARN", targetDepth)) { context.Read(); response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeRecoveryPointInfos", targetDepth)) { context.Read(); response.VolumeRecoveryPointInfos = new List<VolumeRecoveryPointInfo>(); VolumeRecoveryPointInfoUnmarshaller unmarshaller = VolumeRecoveryPointInfoUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.VolumeRecoveryPointInfos.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }