/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeLimitsResponse response = new DescribeLimitsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("OpenShardCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.OpenShardCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ShardLimit", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.ShardLimit = 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) { DescribeLimitsResponse response = new DescribeLimitsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccountMaxReadCapacityUnits", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.AccountMaxReadCapacityUnits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AccountMaxWriteCapacityUnits", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.AccountMaxWriteCapacityUnits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TableMaxReadCapacityUnits", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.TableMaxReadCapacityUnits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TableMaxWriteCapacityUnits", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.TableMaxWriteCapacityUnits = unmarshaller.Unmarshall(context); continue; } } return(response); }