private static void UnmarshallResult(XmlUnmarshallerContext context,CreateJobResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("JobId", targetDepth))
{
response.JobId = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("JobType", targetDepth))
{
response.JobType = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("AwsShippingAddress", targetDepth))
{
response.AwsShippingAddress = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("Signature", targetDepth))
{
response.Signature = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("SignatureFileContents", targetDepth))
{
response.SignatureFileContents = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("WarningMessage", targetDepth))
{
response.WarningMessage = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}