public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetIdentityPoolRolesResponse response = new GetIdentityPoolRolesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("IdentityPoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityPoolId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Roles", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Roles = unmarshaller.Unmarshall(context); continue; } } return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetIdentityPoolRolesResponse getIdentityPoolRolesResponse = new GetIdentityPoolRolesResponse(); context.Read(); int currentDepth = context.CurrentDepth; while (context.ReadAtDepth(currentDepth)) { if (context.TestExpression("IdentityPoolId", currentDepth)) { StringUnmarshaller instance = StringUnmarshaller.Instance; getIdentityPoolRolesResponse.IdentityPoolId = instance.Unmarshall(context); } else if (context.TestExpression("Roles", currentDepth)) { DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller> dictionaryUnmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); getIdentityPoolRolesResponse.Roles = dictionaryUnmarshaller.Unmarshall(context); } } return(getIdentityPoolRolesResponse); }