• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DictionaryUnmarshaller类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DictionaryUnmarshaller的典型用法代码示例。如果您正苦于以下问题:C# DictionaryUnmarshaller类的具体用法?C# DictionaryUnmarshaller怎么用?C# DictionaryUnmarshaller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DictionaryUnmarshaller类属于命名空间,在下文中一共展示了DictionaryUnmarshaller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            GetOfferingStatusResponse response = new GetOfferingStatusResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("current", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, OfferingStatus, StringUnmarshaller, OfferingStatusUnmarshaller>(StringUnmarshaller.Instance, OfferingStatusUnmarshaller.Instance);
                    response.Current = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("nextPeriod", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, OfferingStatus, StringUnmarshaller, OfferingStatusUnmarshaller>(StringUnmarshaller.Instance, OfferingStatusUnmarshaller.Instance);
                    response.NextPeriod = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("nextToken", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextToken = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:GetOfferingStatusResponseUnmarshaller.cs


示例2: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UpdateMethodResponseResponse response = new UpdateMethodResponseResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("responseModels", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.ResponseModels = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("responseParameters", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, bool, StringUnmarshaller, BoolUnmarshaller>(StringUnmarshaller.Instance, BoolUnmarshaller.Instance);
                    response.ResponseParameters = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("statusCode", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.StatusCode = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:35,代码来源:UpdateMethodResponseResponseUnmarshaller.cs


示例3: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            BatchWriteItemResponse response = new BatchWriteItemResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("ConsumedCapacity", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ConsumedCapacity, ConsumedCapacityUnmarshaller>(ConsumedCapacityUnmarshaller.Instance);
                    response.ConsumedCapacity = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ItemCollectionMetrics", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, List<ItemCollectionMetrics>, StringUnmarshaller, ListUnmarshaller<ItemCollectionMetrics, ItemCollectionMetricsUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<ItemCollectionMetrics, ItemCollectionMetricsUnmarshaller>(ItemCollectionMetricsUnmarshaller.Instance));
                    response.ItemCollectionMetrics = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("UnprocessedItems", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, List<WriteRequest>, StringUnmarshaller, ListUnmarshaller<WriteRequest, WriteRequestUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<WriteRequest, WriteRequestUnmarshaller>(WriteRequestUnmarshaller.Instance));
                    response.UnprocessedItems = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:NathanSDunn,项目名称:aws-sdk-unity-samples,代码行数:35,代码来源:BatchWriteItemResponseUnmarshaller.cs


示例4: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            BatchGetItemResponse response = new BatchGetItemResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("ConsumedCapacity", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ConsumedCapacity, ConsumedCapacityUnmarshaller>(ConsumedCapacityUnmarshaller.Instance);
                    response.ConsumedCapacity = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Responses", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, List<Dictionary<string, AttributeValue>>, StringUnmarshaller, ListUnmarshaller<Dictionary<string, AttributeValue>, DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>>(StringUnmarshaller.Instance, new ListUnmarshaller<Dictionary<string, AttributeValue>, DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>(new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.Instance, AttributeValueUnmarshaller.Instance)));
                    response.Responses = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("UnprocessedKeys", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, KeysAndAttributes, StringUnmarshaller, KeysAndAttributesUnmarshaller>(StringUnmarshaller.Instance, KeysAndAttributesUnmarshaller.Instance);
                    response.UnprocessedKeys = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:35,代码来源:BatchGetItemResponseUnmarshaller.cs


示例5: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DescribeThingResponse response = new DescribeThingResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("attributes", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.Attributes = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("defaultClientId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.DefaultClientId = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("thingName", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ThingName = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:borik,项目名称:aws-sdk-net,代码行数:35,代码来源:DescribeThingResponseUnmarshaller.cs


示例6: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UpdateItemResponse response = new UpdateItemResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Attributes", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.Instance, AttributeValueUnmarshaller.Instance);
                    response.Attributes = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ConsumedCapacity", targetDepth))
                {
                    var unmarshaller = ConsumedCapacityUnmarshaller.Instance;
                    response.ConsumedCapacity = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ItemCollectionMetrics", targetDepth))
                {
                    var unmarshaller = ItemCollectionMetricsUnmarshaller.Instance;
                    response.ItemCollectionMetrics = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:35,代码来源:UpdateItemResponseUnmarshaller.cs


示例7: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CreateProvisioningArtifactResponse response = new CreateProvisioningArtifactResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Info", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.Info = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ProvisioningArtifactDetail", targetDepth))
                {
                    var unmarshaller = ProvisioningArtifactDetailUnmarshaller.Instance;
                    response.ProvisioningArtifactDetail = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Status", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Status = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:CreateProvisioningArtifactResponseUnmarshaller.cs


示例8: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UpdateMethodResponse response = new UpdateMethodResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("apiKeyRequired", targetDepth))
                {
                    var unmarshaller = BoolUnmarshaller.Instance;
                    response.ApiKeyRequired = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("authorizationType", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.AuthorizationType = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("authorizerId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.AuthorizerId = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("httpMethod", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.HttpMethod = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("methodIntegration", targetDepth))
                {
                    var unmarshaller = IntegrationUnmarshaller.Instance;
                    response.MethodIntegration = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("methodResponses", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, MethodResponse, StringUnmarshaller, MethodResponseUnmarshaller>(StringUnmarshaller.Instance, MethodResponseUnmarshaller.Instance);
                    response.MethodResponses = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("requestModels", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.RequestModels = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("requestParameters", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, bool, StringUnmarshaller, BoolUnmarshaller>(StringUnmarshaller.Instance, BoolUnmarshaller.Instance);
                    response.RequestParameters = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:Nangal,项目名称:aws-sdk-net,代码行数:65,代码来源:UpdateMethodResponseUnmarshaller.cs


示例9: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            SearchResponse response = new SearchResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("facets", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, BucketInfo, StringUnmarshaller, BucketInfoUnmarshaller>(StringUnmarshaller.Instance, BucketInfoUnmarshaller.Instance);
                    response.Facets = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("hits", targetDepth))
                {
                    var unmarshaller = HitsUnmarshaller.Instance;
                    response.Hits = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("status", targetDepth))
                {
                    var unmarshaller = SearchStatusUnmarshaller.Instance;
                    response.Status = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:borik,项目名称:aws-sdk-net,代码行数:35,代码来源:SearchResponseUnmarshaller.cs


示例10: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            SearchProductsResponse response = new SearchProductsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("NextPageToken", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextPageToken = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ProductViewAggregations", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, List<ProductViewAggregationValue>, StringUnmarshaller, ListUnmarshaller<ProductViewAggregationValue, ProductViewAggregationValueUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<ProductViewAggregationValue, ProductViewAggregationValueUnmarshaller>(ProductViewAggregationValueUnmarshaller.Instance));
                    response.ProductViewAggregations = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ProductViewSummaries", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ProductViewSummary, ProductViewSummaryUnmarshaller>(ProductViewSummaryUnmarshaller.Instance);
                    response.ProductViewSummaries = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:SearchProductsResponseUnmarshaller.cs


示例11: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        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("RoleMappings", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, RoleMapping, StringUnmarshaller, RoleMappingUnmarshaller>(StringUnmarshaller.Instance, RoleMappingUnmarshaller.Instance);
                    response.RoleMappings = 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;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:35,代码来源:GetIdentityPoolRolesResponseUnmarshaller.cs


示例12: Unmarshall

       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           GetItemResponse response = new GetItemResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("Item", targetDepth))
             {
               
               var unmarshaller =  new DictionaryUnmarshaller<String,AttributeValue,StringUnmarshaller,AttributeValueUnmarshaller>(
                   StringUnmarshaller.GetInstance(),AttributeValueUnmarshaller.GetInstance());               
               response.Item = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
             if (context.TestExpression("ConsumedCapacity", targetDepth))
             {
               response.ConsumedCapacity = ConsumedCapacityUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
           }
                       
           return response;
       }                        
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:GetItemResponseUnmarshaller.cs


示例13: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            TestInvokeAuthorizerResponse response = new TestInvokeAuthorizerResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("authorization", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance));
                    response.Authorization = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("claims", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.Claims = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("clientStatus", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.ClientStatus = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("latency", targetDepth))
                {
                    var unmarshaller = LongUnmarshaller.Instance;
                    response.Latency = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("log", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Log = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("policy", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Policy = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("principalId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.PrincipalId = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:59,代码来源:TestInvokeAuthorizerResponseUnmarshaller.cs


示例14: Unmarshall

       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           QueryResponse response = new QueryResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("Items", targetDepth))
             {
               
               var unmarshaller = new ListUnmarshaller<Dictionary<string,AttributeValue>,DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>(
                   new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(),AttributeValueUnmarshaller.GetInstance()));                  
               response.Items = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
             if (context.TestExpression("Count", targetDepth))
             {
               response.Count = IntUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
             if (context.TestExpression("ScannedCount", targetDepth))
             {
               response.ScannedCount = IntUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
             if (context.TestExpression("LastEvaluatedKey", targetDepth))
             {
               
               var unmarshaller =  new DictionaryUnmarshaller<String,AttributeValue,StringUnmarshaller,AttributeValueUnmarshaller>(
                   StringUnmarshaller.GetInstance(),AttributeValueUnmarshaller.GetInstance());               
               response.LastEvaluatedKey = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
             if (context.TestExpression("ConsumedCapacity", targetDepth))
             {
               response.ConsumedCapacity = ConsumedCapacityUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
           }
                       
           return response;
       }                        
开发者ID:jonathanbird,项目名称:aws-sdk-net,代码行数:51,代码来源:QueryResponseUnmarshaller.cs


示例15: Unmarshall

        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CreateIdentityPoolResponse response = new CreateIdentityPoolResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("AllowUnauthenticatedIdentities", targetDepth))
                {
                    var unmarshaller = BoolUnmarshaller.Instance;
                    response.AllowUnauthenticatedIdentities = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("DeveloperProviderName", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.DeveloperProviderName = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("IdentityPoolId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.IdentityPoolId = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("IdentityPoolName", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.IdentityPoolName = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("OpenIdConnectProviderARNs", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
                    response.OpenIdConnectProviderARNs = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("SupportedLoginProviders", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.SupportedLoginProviders = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:NathanSDunn,项目名称:aws-sdk-unity-samples,代码行数:48,代码来源:CreateIdentityPoolResponseUnmarshaller.cs


示例16: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            GetCognitoEventsResponse response = new GetCognitoEventsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Events", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.Events = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:jjenner689,项目名称:frog,代码行数:23,代码来源:GetCognitoEventsResponseUnmarshaller.cs


示例17: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            RemoveAttributesFromFindingsResponse response = new RemoveAttributesFromFindingsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("failedItems", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, FailedItemDetails, StringUnmarshaller, FailedItemDetailsUnmarshaller>(StringUnmarshaller.Instance, FailedItemDetailsUnmarshaller.Instance);
                    response.FailedItems = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:23,代码来源:RemoveAttributesFromFindingsResponseUnmarshaller.cs


示例18: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            TestInvokeMethodResponse response = new TestInvokeMethodResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("body", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Body = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("headers", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.Headers = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("latency", targetDepth))
                {
                    var unmarshaller = LongUnmarshaller.Instance;
                    response.Latency = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("log", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Log = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("status", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.Status = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:47,代码来源:TestInvokeMethodResponseUnmarshaller.cs


示例19: Unmarshall

        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            GetIntegrationResponseResponse response = new GetIntegrationResponseResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("contentHandling", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ContentHandling = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("responseParameters", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.ResponseParameters = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("responseTemplates", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
                    response.ResponseTemplates = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("selectionPattern", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.SelectionPattern = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("statusCode", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.StatusCode = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:aws,项目名称:aws-sdk-net,代码行数:47,代码来源:GetIntegrationResponseResponseUnmarshaller.cs


示例20: Unmarshall

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Difference类代码示例发布时间:2022-05-24
下一篇:
C# DictionaryNode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap