/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { LookupDeveloperIdentityResponse response = new LookupDeveloperIdentityResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DeveloperUserIdentifierList", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.DeveloperUserIdentifierList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdentityId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { LookupDeveloperIdentityResponse lookupDeveloperIdentityResponse = new LookupDeveloperIdentityResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("DeveloperUserIdentifierList", currentDepth)) { ListUnmarshaller <string, StringUnmarshaller> listUnmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); lookupDeveloperIdentityResponse.DeveloperUserIdentifierList = listUnmarshaller.Unmarshall(context); } else if (context.TestExpression("IdentityId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; lookupDeveloperIdentityResponse.IdentityId = instance.Unmarshall(context); } else if (context.TestExpression("NextToken", currentDepth)) { StringUnmarshaller instance2 = StringUnmarshaller.Instance; lookupDeveloperIdentityResponse.NextToken = instance2.Unmarshall(context); } } return(lookupDeveloperIdentityResponse); }