当前位置: 首页>>代码示例>>C#>>正文


C# ListUnmarshaller.Unmarshall方法代码示例

本文整理汇总了C#中ListUnmarshaller.Unmarshall方法的典型用法代码示例。如果您正苦于以下问题:C# ListUnmarshaller.Unmarshall方法的具体用法?C# ListUnmarshaller.Unmarshall怎么用?C# ListUnmarshaller.Unmarshall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ListUnmarshaller的用法示例。


在下文中一共展示了ListUnmarshaller.Unmarshall方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Unmarshall

       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           ListLocalDisksResponse response = new ListLocalDisksResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("GatewayARN", targetDepth))
             {
               response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
             if (context.TestExpression("Disks", targetDepth))
             {
               
               var unmarshaller = new ListUnmarshaller<Disk,DiskUnmarshaller>(
                   DiskUnmarshaller.GetInstance());                  
               response.Disks = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
           }
                       
           return response;
       }                        
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:ListLocalDisksResponseUnmarshaller.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)
        {
            GetRecordsResponse response = new GetRecordsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("MillisBehindLatest", targetDepth))
                {
                    var unmarshaller = LongUnmarshaller.Instance;
                    response.MillisBehindLatest = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("NextShardIterator", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextShardIterator = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Records", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<Record, RecordUnmarshaller>(RecordUnmarshaller.Instance);
                    response.Records = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:35,代码来源:GetRecordsResponseUnmarshaller.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)
        {
            DescribeMountTargetsResponse response = new DescribeMountTargetsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Marker", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Marker = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("MountTargets", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<MountTargetDescription, MountTargetDescriptionUnmarshaller>(MountTargetDescriptionUnmarshaller.Instance);
                    response.MountTargets = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("NextMarker", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextMarker = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:JonathanHenson,项目名称:aws-sdk-net,代码行数:35,代码来源:DescribeMountTargetsResponseUnmarshaller.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)
        {
            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

示例5: Unmarshall

       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           TestRoleResponse response = new TestRoleResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("Success", targetDepth))
             {
               response.Success = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
             if (context.TestExpression("Messages", targetDepth))
             {
               
               var unmarshaller = new ListUnmarshaller<String,StringUnmarshaller>(
                   StringUnmarshaller.GetInstance());                  
               response.Messages = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
           }
                       
           return response;
       }                        
开发者ID:rsparkyc,项目名称:aws-sdk-net,代码行数:29,代码来源:TestRoleResponseUnmarshaller.cs

示例6: Unmarshall

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

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Jobs", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<Job, JobUnmarshaller>(JobUnmarshaller.Instance);
                    response.Jobs = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("NextPageToken", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextPageToken = unmarshaller.Unmarshall(context);
                    continue;
                }
            }
 

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

示例7: Unmarshall

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

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("hasMoreResults", targetDepth))
                {
                    var unmarshaller = BoolUnmarshaller.Instance;
                    response.HasMoreResults = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ids", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
                    response.Ids = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("marker", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Marker = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

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

示例8: Unmarshall

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

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("hasMoreResults", targetDepth))
                {
                    var unmarshaller = BoolUnmarshaller.Instance;
                    response.HasMoreResults = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("marker", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Marker = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("pipelineIdList", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<PipelineIdName, PipelineIdNameUnmarshaller>(PipelineIdNameUnmarshaller.Instance);
                    response.PipelineIdList = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
开发者ID:wmatveyenko,项目名称:aws-sdk-net,代码行数:30,代码来源:ListPipelinesResponseUnmarshaller.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)
        {
            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;
        }
开发者ID:paveltimofeev,项目名称:aws-sdk-unity,代码行数:35,代码来源:LookupDeveloperIdentityResponseUnmarshaller.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)
        {
            PutPipelineDefinitionResponse response = new PutPipelineDefinitionResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("errored", targetDepth))
                {
                    var unmarshaller = BoolUnmarshaller.Instance;
                    response.Errored = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("validationErrors", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ValidationError, ValidationErrorUnmarshaller>(ValidationErrorUnmarshaller.Instance);
                    response.ValidationErrors = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("validationWarnings", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ValidationWarning, ValidationWarningUnmarshaller>(ValidationWarningUnmarshaller.Instance);
                    response.ValidationWarnings = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

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

示例11: Unmarshall

       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           DescribeTapesResponse response = new DescribeTapesResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("Tapes", targetDepth))
             {
               
               var unmarshaller = new ListUnmarshaller<Tape,TapeUnmarshaller>(
                   TapeUnmarshaller.GetInstance());                  
               response.Tapes = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
             if (context.TestExpression("Marker", targetDepth))
             {
               response.Marker = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
           }
                       
           return response;
       }                        
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:DescribeTapesResponseUnmarshaller.cs

示例12: 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)
        {
            GetReplicationRunsResponse response = new GetReplicationRunsResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("nextToken", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextToken = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("replicationJob", targetDepth))
                {
                    var unmarshaller = ReplicationJobUnmarshaller.Instance;
                    response.ReplicationJob = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("replicationRunList", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ReplicationRun, ReplicationRunUnmarshaller>(ReplicationRunUnmarshaller.Instance);
                    response.ReplicationRunList = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

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

示例13: Unmarshall

       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           ListJobsResponse response = new ListJobsResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("JobList", targetDepth))
             {
               
               var unmarshaller = new ListUnmarshaller<GlacierJobDescription,GlacierJobDescriptionUnmarshaller>(
                   GlacierJobDescriptionUnmarshaller.GetInstance());                  
               response.JobList = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
             if (context.TestExpression("Marker", targetDepth))
             {
               response.Marker = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
           }
                       
           return response;
       }                        
开发者ID:rossmas,项目名称:aws-sdk-net,代码行数:29,代码来源:ListJobsResponseUnmarshaller.cs

示例14: Unmarshall

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

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("logGroups", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<LogGroup, LogGroupUnmarshaller>(LogGroupUnmarshaller.Instance);
                    response.LogGroups = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("nextToken", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.NextToken = unmarshaller.Unmarshall(context);
                    continue;
                }
            }
 

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

示例15: 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)
        {
            DiscoverInputSchemaResponse response = new DiscoverInputSchemaResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("InputSchema", targetDepth))
                {
                    var unmarshaller = SourceSchemaUnmarshaller.Instance;
                    response.InputSchema = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ParsedInputRecords", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<List<string>, ListUnmarshaller<string, StringUnmarshaller>>(new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance));
                    response.ParsedInputRecords = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("RawInputRecords", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
                    response.RawInputRecords = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

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


注:本文中的ListUnmarshaller.Unmarshall方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。