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


C# UnmarshallerContext.LongValue方法代码示例

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


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

示例1: Unmarshall

        public static DescribeSQLLogRecordsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLLogRecordsResponse describeSQLLogRecordsResponse = new DescribeSQLLogRecordsResponse();

            describeSQLLogRecordsResponse.HttpResponse = context.HttpResponse;
            describeSQLLogRecordsResponse.RequestId = context.StringValue("DescribeSQLLogRecords.RequestId");
            describeSQLLogRecordsResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogRecords.TotalRecordCount");
            describeSQLLogRecordsResponse.PageNumber = context.IntegerValue("DescribeSQLLogRecords.PageNumber");
            describeSQLLogRecordsResponse.PageRecordCount = context.IntegerValue("DescribeSQLLogRecords.PageRecordCount");

            List<DescribeSQLLogRecordsResponse.SQLRecord> items = new List<DescribeSQLLogRecordsResponse.SQLRecord>();
            for (int i = 0; i < context.Length("DescribeSQLLogRecords.Items.Length"); i++) {
                DescribeSQLLogRecordsResponse.SQLRecord sQLRecord = new DescribeSQLLogRecordsResponse.SQLRecord();
                sQLRecord.DBName = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].DBName");
                sQLRecord.AccountName = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].AccountName");
                sQLRecord.HostAddress = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].HostAddress");
                sQLRecord.SQLText = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].SQLText");
                sQLRecord.TotalExecutionTimes = context.LongValue("DescribeSQLLogRecords.Items["+ i +"].TotalExecutionTimes");
                sQLRecord.ReturnRowCounts = context.LongValue("DescribeSQLLogRecords.Items["+ i +"].ReturnRowCounts");
                sQLRecord.ExecuteTime = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].ExecuteTime");

                items.Add(sQLRecord);
            }
            describeSQLLogRecordsResponse.Items = items;

            return describeSQLLogRecordsResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:27,代码来源:DescribeSQLLogRecordsResponseUnmarshaller.cs

示例2: Unmarshall

        public static DescribePurchasedApiGroupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePurchasedApiGroupsResponse describePurchasedApiGroupsResponse = new DescribePurchasedApiGroupsResponse();

            describePurchasedApiGroupsResponse.HttpResponse = context.HttpResponse;
            describePurchasedApiGroupsResponse.RequestId = context.StringValue("DescribePurchasedApiGroups.RequestId");
            describePurchasedApiGroupsResponse.TotalCount = context.IntegerValue("DescribePurchasedApiGroups.TotalCount");
            describePurchasedApiGroupsResponse.PageSize = context.IntegerValue("DescribePurchasedApiGroups.PageSize");
            describePurchasedApiGroupsResponse.PageNumber = context.IntegerValue("DescribePurchasedApiGroups.PageNumber");

            List<DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute> purchasedApiGroupAttributes = new List<DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute>();
            for (int i = 0; i < context.Length("DescribePurchasedApiGroups.PurchasedApiGroupAttributes.Length"); i++) {
                DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute purchasedApiGroupAttribute = new DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute();
                purchasedApiGroupAttribute.GroupId = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].GroupId");
                purchasedApiGroupAttribute.GroupName = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].GroupName");
                purchasedApiGroupAttribute.Description = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].Description");
                purchasedApiGroupAttribute.PurchasedTime = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].PurchasedTime");
                purchasedApiGroupAttribute.ExpireTime = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].ExpireTime");
                purchasedApiGroupAttribute.RegionId = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].RegionId");
                purchasedApiGroupAttribute.BillingType = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].BillingType");
                purchasedApiGroupAttribute.InvokeTimesMax = context.LongValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].InvokeTimesMax");
                purchasedApiGroupAttribute.InvokeTimesNow = context.LongValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].InvokeTimesNow");

                purchasedApiGroupAttributes.Add(purchasedApiGroupAttribute);
            }
            describePurchasedApiGroupsResponse.PurchasedApiGroupAttributes = purchasedApiGroupAttributes;

            return describePurchasedApiGroupsResponse;
        }
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:29,代码来源:DescribePurchasedApiGroupsResponseUnmarshaller.cs

示例3: Unmarshall

        public static SearchMediaWorkflowResponse Unmarshall(UnmarshallerContext context)
        {
            SearchMediaWorkflowResponse searchMediaWorkflowResponse = new SearchMediaWorkflowResponse();

            searchMediaWorkflowResponse.HttpResponse = context.HttpResponse;
            searchMediaWorkflowResponse.RequestId = context.StringValue("SearchMediaWorkflow.RequestId");
            searchMediaWorkflowResponse.TotalCount = context.LongValue("SearchMediaWorkflow.TotalCount");
            searchMediaWorkflowResponse.PageNumber = context.LongValue("SearchMediaWorkflow.PageNumber");
            searchMediaWorkflowResponse.PageSize = context.LongValue("SearchMediaWorkflow.PageSize");

            List<SearchMediaWorkflowResponse.MediaWorkflow> mediaWorkflowList = new List<SearchMediaWorkflowResponse.MediaWorkflow>();
            for (int i = 0; i < context.Length("SearchMediaWorkflow.MediaWorkflowList.Length"); i++) {
                SearchMediaWorkflowResponse.MediaWorkflow mediaWorkflow = new SearchMediaWorkflowResponse.MediaWorkflow();
                mediaWorkflow.MediaWorkflowId = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].MediaWorkflowId");
                mediaWorkflow.Name = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].Name");
                mediaWorkflow.Topology = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].Topology");
                mediaWorkflow.State = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].State");
                mediaWorkflow.CreationTime = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].CreationTime");

                mediaWorkflowList.Add(mediaWorkflow);
            }
            searchMediaWorkflowResponse.MediaWorkflowList = mediaWorkflowList;

            return searchMediaWorkflowResponse;
        }
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:SearchMediaWorkflowResponseUnmarshaller.cs

示例4: Unmarshall

        public static DescribeHistoryCharge95InfoResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeHistoryCharge95InfoResponse describeHistoryCharge95InfoResponse = new DescribeHistoryCharge95InfoResponse();

            describeHistoryCharge95InfoResponse.HttpResponse = context.HttpResponse;
            describeHistoryCharge95InfoResponse.RequestId = context.StringValue("DescribeHistoryCharge95Info.RequestId");
            describeHistoryCharge95InfoResponse.PageNumber = context.LongValue("DescribeHistoryCharge95Info.PageNumber");
            describeHistoryCharge95InfoResponse.PageSize = context.LongValue("DescribeHistoryCharge95Info.PageSize");
            describeHistoryCharge95InfoResponse.TotalCount = context.LongValue("DescribeHistoryCharge95Info.TotalCount");
            describeHistoryCharge95InfoResponse.TotalPages = context.LongValue("DescribeHistoryCharge95Info.TotalPages");
            describeHistoryCharge95InfoResponse.UserName = context.StringValue("DescribeHistoryCharge95Info.UserName");

            List<DescribeHistoryCharge95InfoResponse.HistoryCharge95Info> historyCharge95Infos = new List<DescribeHistoryCharge95InfoResponse.HistoryCharge95Info>();
            for (int i = 0; i < context.Length("DescribeHistoryCharge95Info.HistoryCharge95Infos.Length"); i++) {
                DescribeHistoryCharge95InfoResponse.HistoryCharge95Info historyCharge95Info = new DescribeHistoryCharge95InfoResponse.HistoryCharge95Info();
                historyCharge95Info.DomainName = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].DomainName");
                historyCharge95Info.BillTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].BillTime");
                historyCharge95Info.ChargeItem = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].ChargeItem");
                historyCharge95Info.Max95Bps = context.LongValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].Max95Bps");
                historyCharge95Info.Max95BpsTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].Max95BpsTime");
                historyCharge95Info.EffectiveFactor = context.FloatValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].EffectiveFactor");
                historyCharge95Info.StartTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].StartTime");
                historyCharge95Info.EndTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].EndTime");
                historyCharge95Info.Proportion = context.FloatValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].Proportion");
                historyCharge95Info.DownloadUrl = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].DownloadUrl");

                historyCharge95Infos.Add(historyCharge95Info);
            }
            describeHistoryCharge95InfoResponse.HistoryCharge95Infos = historyCharge95Infos;

            return describeHistoryCharge95InfoResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:32,代码来源:DescribeHistoryCharge95InfoResponseUnmarshaller.cs

示例5: Unmarshall

        public static SearchWaterMarkTemplateResponse Unmarshall(UnmarshallerContext context)
        {
            SearchWaterMarkTemplateResponse searchWaterMarkTemplateResponse = new SearchWaterMarkTemplateResponse();

            searchWaterMarkTemplateResponse.HttpResponse = context.HttpResponse;
            searchWaterMarkTemplateResponse.RequestId = context.StringValue("SearchWaterMarkTemplate.RequestId");
            searchWaterMarkTemplateResponse.TotalCount = context.LongValue("SearchWaterMarkTemplate.TotalCount");
            searchWaterMarkTemplateResponse.PageNumber = context.LongValue("SearchWaterMarkTemplate.PageNumber");
            searchWaterMarkTemplateResponse.PageSize = context.LongValue("SearchWaterMarkTemplate.PageSize");

            List<SearchWaterMarkTemplateResponse.WaterMarkTemplate> waterMarkTemplateList = new List<SearchWaterMarkTemplateResponse.WaterMarkTemplate>();
            for (int i = 0; i < context.Length("SearchWaterMarkTemplate.WaterMarkTemplateList.Length"); i++) {
                SearchWaterMarkTemplateResponse.WaterMarkTemplate waterMarkTemplate = new SearchWaterMarkTemplateResponse.WaterMarkTemplate();
                waterMarkTemplate.Id = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Id");
                waterMarkTemplate.Name = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Name");
                waterMarkTemplate.Width = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Width");
                waterMarkTemplate.Height = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Height");
                waterMarkTemplate.Dx = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Dx");
                waterMarkTemplate.Dy = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Dy");
                waterMarkTemplate.ReferPos = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].ReferPos");
                waterMarkTemplate.Type = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Type");
                waterMarkTemplate.State = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].State");

                waterMarkTemplateList.Add(waterMarkTemplate);
            }
            searchWaterMarkTemplateResponse.WaterMarkTemplateList = waterMarkTemplateList;

            return searchWaterMarkTemplateResponse;
        }
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:29,代码来源:SearchWaterMarkTemplateResponseUnmarshaller.cs

示例6: Unmarshall

        public static DescribeOptimizeAdviceOnBigTableResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeOptimizeAdviceOnBigTableResponse describeOptimizeAdviceOnBigTableResponse = new DescribeOptimizeAdviceOnBigTableResponse();

            describeOptimizeAdviceOnBigTableResponse.HttpResponse = context.HttpResponse;
            describeOptimizeAdviceOnBigTableResponse.RequestId = context.StringValue("DescribeOptimizeAdviceOnBigTable.RequestId");
            describeOptimizeAdviceOnBigTableResponse.TotalRecordsCount = context.IntegerValue("DescribeOptimizeAdviceOnBigTable.TotalRecordsCount");
            describeOptimizeAdviceOnBigTableResponse.PageNumber = context.IntegerValue("DescribeOptimizeAdviceOnBigTable.PageNumber");
            describeOptimizeAdviceOnBigTableResponse.PageRecordCount = context.IntegerValue("DescribeOptimizeAdviceOnBigTable.PageRecordCount");

            List<DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable> items = new List<DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable>();
            for (int i = 0; i < context.Length("DescribeOptimizeAdviceOnBigTable.Items.Length"); i++) {
                DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable adviceOnBigTable = new DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable();
                adviceOnBigTable.DBName = context.StringValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].DBName");
                adviceOnBigTable.TableName = context.StringValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].TableName");
                adviceOnBigTable.TableSize = context.LongValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].TableSize");
                adviceOnBigTable.DataSize = context.LongValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].DataSize");
                adviceOnBigTable.IndexSize = context.LongValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].IndexSize");

                items.Add(adviceOnBigTable);
            }
            describeOptimizeAdviceOnBigTableResponse.Items = items;

            return describeOptimizeAdviceOnBigTableResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:DescribeOptimizeAdviceOnBigTableResponseUnmarshaller.cs

示例7: Unmarshall

        public static DescribeTopDomainsByFlowResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeTopDomainsByFlowResponse describeTopDomainsByFlowResponse = new DescribeTopDomainsByFlowResponse();

            describeTopDomainsByFlowResponse.HttpResponse = context.HttpResponse;
            describeTopDomainsByFlowResponse.RequestId = context.StringValue("DescribeTopDomainsByFlow.RequestId");
            describeTopDomainsByFlowResponse.StartTime = context.StringValue("DescribeTopDomainsByFlow.StartTime");
            describeTopDomainsByFlowResponse.EndTime = context.StringValue("DescribeTopDomainsByFlow.EndTime");
            describeTopDomainsByFlowResponse.DomainCount = context.LongValue("DescribeTopDomainsByFlow.DomainCount");
            describeTopDomainsByFlowResponse.DomainOnlineCount = context.LongValue("DescribeTopDomainsByFlow.DomainOnlineCount");

            List<DescribeTopDomainsByFlowResponse.TopDomain> topDomains = new List<DescribeTopDomainsByFlowResponse.TopDomain>();
            for (int i = 0; i < context.Length("DescribeTopDomainsByFlow.TopDomains.Length"); i++) {
                DescribeTopDomainsByFlowResponse.TopDomain topDomain = new DescribeTopDomainsByFlowResponse.TopDomain();
                topDomain.DomainName = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].DomainName");
                topDomain.Rank = context.LongValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].Rank");
                topDomain.TotalTraffic = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].TotalTraffic");
                topDomain.TrafficPercent = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].TrafficPercent");
                topDomain.MaxBps = context.LongValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].MaxBps");
                topDomain.MaxBpsTime = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].MaxBpsTime");
                topDomain.TotalAccess = context.LongValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].TotalAccess");

                topDomains.Add(topDomain);
            }
            describeTopDomainsByFlowResponse.TopDomains = topDomains;

            return describeTopDomainsByFlowResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:28,代码来源:DescribeTopDomainsByFlowResponseUnmarshaller.cs

示例8: Unmarshall

        public static DescribeDomainRecordsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainRecordsResponse describeDomainRecordsResponse = new DescribeDomainRecordsResponse();

            describeDomainRecordsResponse.HttpResponse = context.HttpResponse;
            describeDomainRecordsResponse.RequestId = context.StringValue("DescribeDomainRecords.RequestId");
            describeDomainRecordsResponse.TotalCount = context.LongValue("DescribeDomainRecords.TotalCount");
            describeDomainRecordsResponse.PageNumber = context.LongValue("DescribeDomainRecords.PageNumber");
            describeDomainRecordsResponse.PageSize = context.LongValue("DescribeDomainRecords.PageSize");

            List<DescribeDomainRecordsResponse.Record> domainRecords = new List<DescribeDomainRecordsResponse.Record>();
            for (int i = 0; i < context.Length("DescribeDomainRecords.DomainRecords.Length"); i++) {
                DescribeDomainRecordsResponse.Record record = new DescribeDomainRecordsResponse.Record();
                record.DomainName = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].DomainName");
                record.RecordId = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RecordId");
                record.RR = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RR");
                record.Type = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Type");
                record.Value = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Value");
                record.TTL = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].TTL");
                record.Priority = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].Priority");
                record.Line = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Line");
                record.Status = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Status");
                record.Locked = context.BooleanValue("DescribeDomainRecords.DomainRecords["+ i +"].Locked");
                record.Weight = context.IntegerValue("DescribeDomainRecords.DomainRecords["+ i +"].Weight");

                domainRecords.Add(record);
            }
            describeDomainRecordsResponse.DomainRecords = domainRecords;

            return describeDomainRecordsResponse;
        }
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:31,代码来源:DescribeDomainRecordsResponseUnmarshaller.cs

示例9: Unmarshall

        public static DescribeRefreshTasksResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeRefreshTasksResponse describeRefreshTasksResponse = new DescribeRefreshTasksResponse();

            describeRefreshTasksResponse.HttpResponse = context.HttpResponse;
            describeRefreshTasksResponse.RequestId = context.StringValue("DescribeRefreshTasks.RequestId");
            describeRefreshTasksResponse.PageNumber = context.LongValue("DescribeRefreshTasks.PageNumber");
            describeRefreshTasksResponse.PageSize = context.LongValue("DescribeRefreshTasks.PageSize");
            describeRefreshTasksResponse.TotalCount = context.LongValue("DescribeRefreshTasks.TotalCount");

            List<DescribeRefreshTasksResponse.CDNTask> tasks = new List<DescribeRefreshTasksResponse.CDNTask>();
            for (int i = 0; i < context.Length("DescribeRefreshTasks.Tasks.Length"); i++) {
                DescribeRefreshTasksResponse.CDNTask cDNTask = new DescribeRefreshTasksResponse.CDNTask();
                cDNTask.TaskId = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].TaskId");
                cDNTask.ObjectPath = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].ObjectPath");
                cDNTask.Process = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].Process");
                cDNTask.Status = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].Status");
                cDNTask.CreationTime = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].CreationTime");

                tasks.Add(cDNTask);
            }
            describeRefreshTasksResponse.Tasks = tasks;

            return describeRefreshTasksResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:DescribeRefreshTasksResponseUnmarshaller.cs

示例10: Unmarshall

        public static DescribeDomainLogsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainLogsResponse describeDomainLogsResponse = new DescribeDomainLogsResponse();

            describeDomainLogsResponse.HttpResponse = context.HttpResponse;
            describeDomainLogsResponse.RequestId = context.StringValue("DescribeDomainLogs.RequestId");
            describeDomainLogsResponse.TotalCount = context.LongValue("DescribeDomainLogs.TotalCount");
            describeDomainLogsResponse.PageNumber = context.LongValue("DescribeDomainLogs.PageNumber");
            describeDomainLogsResponse.PageSize = context.LongValue("DescribeDomainLogs.PageSize");

            List<DescribeDomainLogsResponse.DomainLog> domainLogs = new List<DescribeDomainLogsResponse.DomainLog>();
            for (int i = 0; i < context.Length("DescribeDomainLogs.DomainLogs.Length"); i++) {
                DescribeDomainLogsResponse.DomainLog domainLog = new DescribeDomainLogsResponse.DomainLog();
                domainLog.ActionTime = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].ActionTime");
                domainLog.DomainName = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].DomainName");
                domainLog.Action = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].Action");
                domainLog.Message = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].Message");
                domainLog.ClientIp = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].ClientIp");

                domainLogs.Add(domainLog);
            }
            describeDomainLogsResponse.DomainLogs = domainLogs;

            return describeDomainLogsResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:DescribeDomainLogsResponseUnmarshaller.cs

示例11: Unmarshall

        public static DescribeUserDomainsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeUserDomainsResponse describeUserDomainsResponse = new DescribeUserDomainsResponse();

            describeUserDomainsResponse.HttpResponse = context.HttpResponse;
            describeUserDomainsResponse.RequestId = context.StringValue("DescribeUserDomains.RequestId");
            describeUserDomainsResponse.PageNumber = context.LongValue("DescribeUserDomains.PageNumber");
            describeUserDomainsResponse.PageSize = context.LongValue("DescribeUserDomains.PageSize");
            describeUserDomainsResponse.TotalCount = context.LongValue("DescribeUserDomains.TotalCount");

            List<DescribeUserDomainsResponse.PageData> domains = new List<DescribeUserDomainsResponse.PageData>();
            for (int i = 0; i < context.Length("DescribeUserDomains.Domains.Length"); i++) {
                DescribeUserDomainsResponse.PageData pageData = new DescribeUserDomainsResponse.PageData();
                pageData.DomainName = context.StringValue("DescribeUserDomains.Domains["+ i +"].DomainName");
                pageData.Cname = context.StringValue("DescribeUserDomains.Domains["+ i +"].Cname");
                pageData.CdnType = context.StringValue("DescribeUserDomains.Domains["+ i +"].CdnType");
                pageData.DomainStatus = context.StringValue("DescribeUserDomains.Domains["+ i +"].DomainStatus");
                pageData.GmtCreated = context.StringValue("DescribeUserDomains.Domains["+ i +"].GmtCreated");
                pageData.GmtModified = context.StringValue("DescribeUserDomains.Domains["+ i +"].GmtModified");
                pageData.Description = context.StringValue("DescribeUserDomains.Domains["+ i +"].Description");
                pageData.SourceType = context.StringValue("DescribeUserDomains.Domains["+ i +"].SourceType");
                pageData.SslProtocol = context.StringValue("DescribeUserDomains.Domains["+ i +"].SslProtocol");

                List<string> sources = new List<string>();
                for (int j = 0; j < context.Length("DescribeUserDomains.Domains["+ i +"].Sources.Length"); j++) {
                    sources.Add(context.StringValue("DescribeUserDomains.Domains["+ i +"].Sources["+ j +"]"));
                }
                pageData.Sources = sources;

                domains.Add(pageData);
            }
            describeUserDomainsResponse.Domains = domains;

            return describeUserDomainsResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:35,代码来源:DescribeUserDomainsResponseUnmarshaller.cs

示例12: Unmarshall

        public static SearchPipelineResponse Unmarshall(UnmarshallerContext context)
        {
            SearchPipelineResponse searchPipelineResponse = new SearchPipelineResponse();

            searchPipelineResponse.HttpResponse = context.HttpResponse;
            searchPipelineResponse.RequestId = context.StringValue("SearchPipeline.RequestId");
            searchPipelineResponse.TotalCount = context.LongValue("SearchPipeline.TotalCount");
            searchPipelineResponse.PageNumber = context.LongValue("SearchPipeline.PageNumber");
            searchPipelineResponse.PageSize = context.LongValue("SearchPipeline.PageSize");

            List<SearchPipelineResponse.Pipeline> pipelineList = new List<SearchPipelineResponse.Pipeline>();
            for (int i = 0; i < context.Length("SearchPipeline.PipelineList.Length"); i++) {
                SearchPipelineResponse.Pipeline pipeline = new SearchPipelineResponse.Pipeline();
                pipeline.Id = context.StringValue("SearchPipeline.PipelineList["+ i +"].Id");
                pipeline.Name = context.StringValue("SearchPipeline.PipelineList["+ i +"].Name");
                pipeline.State = context.StringValue("SearchPipeline.PipelineList["+ i +"].State");
                pipeline.Speed = context.StringValue("SearchPipeline.PipelineList["+ i +"].Speed");
                pipeline.Role = context.StringValue("SearchPipeline.PipelineList["+ i +"].Role");

                SearchPipelineResponse.Pipeline.NotifyConfig_ notifyConfig = new SearchPipelineResponse.Pipeline.NotifyConfig_();
                notifyConfig.Topic = context.StringValue("SearchPipeline.PipelineList["+ i +"].NotifyConfig.Topic");
                notifyConfig.QueueName = context.StringValue("SearchPipeline.PipelineList["+ i +"].NotifyConfig.QueueName");
                pipeline.NotifyConfig = notifyConfig;

                pipelineList.Add(pipeline);
            }
            searchPipelineResponse.PipelineList = pipelineList;

            return searchPipelineResponse;
        }
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:30,代码来源:SearchPipelineResponseUnmarshaller.cs

示例13: Unmarshall

        public static DescribeCdnDomainLogsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCdnDomainLogsResponse describeCdnDomainLogsResponse = new DescribeCdnDomainLogsResponse();

            describeCdnDomainLogsResponse.HttpResponse = context.HttpResponse;
            describeCdnDomainLogsResponse.RequestId = context.StringValue("DescribeCdnDomainLogs.RequestId");
            describeCdnDomainLogsResponse.PageNumber = context.LongValue("DescribeCdnDomainLogs.PageNumber");
            describeCdnDomainLogsResponse.PageSize = context.LongValue("DescribeCdnDomainLogs.PageSize");
            describeCdnDomainLogsResponse.TotalCount = context.LongValue("DescribeCdnDomainLogs.TotalCount");

            DescribeCdnDomainLogsResponse.DomainLogModel_ domainLogModel = new DescribeCdnDomainLogsResponse.DomainLogModel_();
            domainLogModel.DomainName = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainName");

            List<DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail> domainLogDetails = new List<DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail>();
            for (int i = 0; i < context.Length("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails.Length"); i++) {
                DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail domainLogDetail = new DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail();
                domainLogDetail.LogName = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].LogName");
                domainLogDetail.LogPath = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].LogPath");
                domainLogDetail.LogSize = context.LongValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].LogSize");
                domainLogDetail.StartTime = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].StartTime");
                domainLogDetail.EndTime = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].EndTime");

                domainLogDetails.Add(domainLogDetail);
            }
            domainLogModel.DomainLogDetails = domainLogDetails;
            describeCdnDomainLogsResponse.DomainLogModel = domainLogModel;

            return describeCdnDomainLogsResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:29,代码来源:DescribeCdnDomainLogsResponseUnmarshaller.cs

示例14: Unmarshall

        public static ListDevicePermitsResponse Unmarshall(UnmarshallerContext context)
        {
            ListDevicePermitsResponse listDevicePermitsResponse = new ListDevicePermitsResponse();

            listDevicePermitsResponse.HttpResponse = context.HttpResponse;
            listDevicePermitsResponse.RequestId = context.StringValue("ListDevicePermits.RequestId");
            listDevicePermitsResponse.Success = context.BooleanValue("ListDevicePermits.Success");
            listDevicePermitsResponse.ErrorMessage = context.StringValue("ListDevicePermits.ErrorMessage");

            List<ListDevicePermitsResponse.DevicePermission> devicePermissions = new List<ListDevicePermitsResponse.DevicePermission>();
            for (int i = 0; i < context.Length("ListDevicePermits.DevicePermissions.Length"); i++) {
                ListDevicePermitsResponse.DevicePermission devicePermission = new ListDevicePermitsResponse.DevicePermission();
                devicePermission.Id = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].Id");
                devicePermission.AppKey = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].AppKey");
                devicePermission.DeviceId = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].DeviceId");
                devicePermission.GrantType = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].GrantType");
                devicePermission.TopicFullName = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].TopicFullName");
                devicePermission.TopicUserId = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].TopicUserId");

                devicePermissions.Add(devicePermission);
            }
            listDevicePermitsResponse.DevicePermissions = devicePermissions;

            return listDevicePermitsResponse;
        }
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:ListDevicePermitsResponseUnmarshaller.cs

示例15: Unmarshall

        public static SearchMediaResponse Unmarshall(UnmarshallerContext context)
        {
            SearchMediaResponse searchMediaResponse = new SearchMediaResponse();

            searchMediaResponse.HttpResponse = context.HttpResponse;
            searchMediaResponse.RequestId = context.StringValue("SearchMedia.RequestId");
            searchMediaResponse.TotalNum = context.LongValue("SearchMedia.TotalNum");
            searchMediaResponse.PageNumber = context.LongValue("SearchMedia.PageNumber");
            searchMediaResponse.PageSize = context.LongValue("SearchMedia.PageSize");

            List<SearchMediaResponse.Media> mediaList = new List<SearchMediaResponse.Media>();
            for (int i = 0; i < context.Length("SearchMedia.MediaList.Length"); i++) {
                SearchMediaResponse.Media media = new SearchMediaResponse.Media();
                media.MediaId = context.StringValue("SearchMedia.MediaList["+ i +"].MediaId");
                media.Title = context.StringValue("SearchMedia.MediaList["+ i +"].Title");
                media.Description = context.StringValue("SearchMedia.MediaList["+ i +"].Description");
                media.CoverURL = context.StringValue("SearchMedia.MediaList["+ i +"].CoverURL");
                media.CateId = context.LongValue("SearchMedia.MediaList["+ i +"].CateId");
                media.Duration = context.StringValue("SearchMedia.MediaList["+ i +"].Duration");
                media.Format = context.StringValue("SearchMedia.MediaList["+ i +"].Format");
                media.Size = context.StringValue("SearchMedia.MediaList["+ i +"].Size");
                media.Bitrate = context.StringValue("SearchMedia.MediaList["+ i +"].Bitrate");
                media.Width = context.StringValue("SearchMedia.MediaList["+ i +"].Width");
                media.Height = context.StringValue("SearchMedia.MediaList["+ i +"].Height");
                media.Fps = context.StringValue("SearchMedia.MediaList["+ i +"].Fps");
                media.PublishState = context.StringValue("SearchMedia.MediaList["+ i +"].PublishState");
                media.CreationTime = context.StringValue("SearchMedia.MediaList["+ i +"].CreationTime");

                List<string> tags = new List<string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList["+ i +"].Tags.Length"); j++) {
                    tags.Add(context.StringValue("SearchMedia.MediaList["+ i +"].Tags["+ j +"]"));
                }
                media.Tags = tags;

                List<string> runIdList = new List<string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList["+ i +"].RunIdList.Length"); j++) {
                    runIdList.Add(context.StringValue("SearchMedia.MediaList["+ i +"].RunIdList["+ j +"]"));
                }
                media.RunIdList = runIdList;

                SearchMediaResponse.Media.File_ file = new SearchMediaResponse.Media.File_();
                file.URL = context.StringValue("SearchMedia.MediaList["+ i +"].File.URL");
                file.State = context.StringValue("SearchMedia.MediaList["+ i +"].File.State");
                media.File = file;

                mediaList.Add(media);
            }
            searchMediaResponse.MediaList = mediaList;

            return searchMediaResponse;
        }
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:51,代码来源:SearchMediaResponseUnmarshaller.cs


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