Exemple #1
0
        public static DescribeQuotaResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeQuotaResponse describeQuotaResponse = new DescribeQuotaResponse();

            describeQuotaResponse.HttpResponse = context.HttpResponse;
            describeQuotaResponse.RequestId    = context.StringValue("DescribeQuota.RequestId");
            describeQuotaResponse.Code         = context.StringValue("DescribeQuota.Code");
            describeQuotaResponse.Message      = context.StringValue("DescribeQuota.Message");

            DescribeQuotaResponse.DescribeQuota_Result result = new DescribeQuotaResponse.DescribeQuota_Result();
            result.UserCount             = context.LongValue("DescribeQuota.Result.UserCount");
            result.UserCountUsed         = context.LongValue("DescribeQuota.Result.UserCountUsed");
            result.ItemCount             = context.LongValue("DescribeQuota.Result.ItemCount");
            result.ItemCountUsed         = context.LongValue("DescribeQuota.Result.ItemCountUsed");
            result.Qps                   = context.IntegerValue("DescribeQuota.Result.Qps");
            result.CurrentQps            = context.IntegerValue("DescribeQuota.Result.CurrentQps");
            describeQuotaResponse.Result = result;

            return(describeQuotaResponse);
        }
        public static DescribeQuotaResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeQuotaResponse describeQuotaResponse = new DescribeQuotaResponse();

            describeQuotaResponse.HttpResponse = _ctx.HttpResponse;
            describeQuotaResponse.Code         = _ctx.StringValue("DescribeQuota.code");
            describeQuotaResponse.Message      = _ctx.StringValue("DescribeQuota.message");
            describeQuotaResponse.RequestId    = _ctx.StringValue("DescribeQuota.requestId");

            DescribeQuotaResponse.DescribeQuota_Result result = new DescribeQuotaResponse.DescribeQuota_Result();
            result.CurrentQps            = _ctx.IntegerValue("DescribeQuota.Result.currentQps");
            result.ItemCount             = _ctx.LongValue("DescribeQuota.Result.itemCount");
            result.ItemCountUsed         = _ctx.LongValue("DescribeQuota.Result.itemCountUsed");
            result.Qps                   = _ctx.IntegerValue("DescribeQuota.Result.qps");
            result.UserCount             = _ctx.LongValue("DescribeQuota.Result.userCount");
            result.UserCountUsed         = _ctx.LongValue("DescribeQuota.Result.userCountUsed");
            describeQuotaResponse.Result = result;

            return(describeQuotaResponse);
        }