/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSchemaResponse response = new CreateSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("schemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaArn = 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) { CreateSchemaResponse response = new CreateSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModified", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastModified = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VersionCreatedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.VersionCreatedDate = 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) { CreateSchemaResponse response = new CreateSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Compatibility", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Compatibility = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataFormat", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DataFormat = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LatestSchemaVersion", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.LatestSchemaVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextSchemaVersion", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.NextSchemaVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegistryArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RegistryArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegistryName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RegistryName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaCheckpoint", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.SchemaCheckpoint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaVersionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaVersionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaVersionStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaVersionStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return(response); }