public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeIdentityResponse describeIdentityResponse = new DescribeIdentityResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("CreationDate", currentDepth)) { DateTimeUnmarshaller instance = DateTimeUnmarshaller.Instance; describeIdentityResponse.CreationDate = instance.Unmarshall(context); } else if (context.TestExpression("IdentityId", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; describeIdentityResponse.IdentityId = instance2.Unmarshall(context); } else if (context.TestExpression("LastModifiedDate", currentDepth)) { DateTimeUnmarshaller instance3 = DateTimeUnmarshaller.Instance; describeIdentityResponse.LastModifiedDate = instance3.Unmarshall(context); } else if (context.TestExpression("Logins", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); describeIdentityResponse.Logins = listUnmarshaller.Unmarshall(context); } } return(describeIdentityResponse); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeIdentityResponse response = new DescribeIdentityResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdentityId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastModifiedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Logins", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.Logins = unmarshaller.Unmarshall(context); continue; } } return(response); }