/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeDatasetImportJobResponse response = new DescribeDatasetImportJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("datasetImportJob", targetDepth)) { var unmarshaller = DatasetImportJobUnmarshaller.Instance; response.DatasetImportJob = unmarshaller.Unmarshall(context); continue; } } return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeDatasetImportJobResponse response = new DescribeDatasetImportJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DatasetArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DatasetArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DatasetImportJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DatasetImportJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DatasetImportJobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DatasetImportJobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataSize", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; response.DataSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataSource", targetDepth)) { var unmarshaller = DataSourceUnmarshaller.Instance; response.DataSource = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FieldStatistics", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, Statistics, StringUnmarshaller, StatisticsUnmarshaller>(StringUnmarshaller.Instance, StatisticsUnmarshaller.Instance); response.FieldStatistics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModificationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastModificationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TimestampFormat", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TimestampFormat = unmarshaller.Unmarshall(context); continue; } } return(response); }