本文整理汇总了C#中UnmarshallerContext.Length方法的典型用法代码示例。如果您正苦于以下问题:C# UnmarshallerContext.Length方法的具体用法?C# UnmarshallerContext.Length怎么用?C# UnmarshallerContext.Length使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnmarshallerContext
的用法示例。
在下文中一共展示了UnmarshallerContext.Length方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unmarshall
public static QueryMediaWorkflowListResponse Unmarshall(UnmarshallerContext context)
{
QueryMediaWorkflowListResponse queryMediaWorkflowListResponse = new QueryMediaWorkflowListResponse();
queryMediaWorkflowListResponse.HttpResponse = context.HttpResponse;
queryMediaWorkflowListResponse.RequestId = context.StringValue("QueryMediaWorkflowList.RequestId");
List<string> nonExistMediaWorkflowIds = new List<string>();
for (int i = 0; i < context.Length("QueryMediaWorkflowList.NonExistMediaWorkflowIds.Length"); i++) {
nonExistMediaWorkflowIds.Add(context.StringValue("QueryMediaWorkflowList.NonExistMediaWorkflowIds["+ i +"]"));
}
queryMediaWorkflowListResponse.NonExistMediaWorkflowIds = nonExistMediaWorkflowIds;
List<QueryMediaWorkflowListResponse.MediaWorkflow> mediaWorkflowList = new List<QueryMediaWorkflowListResponse.MediaWorkflow>();
for (int i = 0; i < context.Length("QueryMediaWorkflowList.MediaWorkflowList.Length"); i++) {
QueryMediaWorkflowListResponse.MediaWorkflow mediaWorkflow = new QueryMediaWorkflowListResponse.MediaWorkflow();
mediaWorkflow.MediaWorkflowId = context.StringValue("QueryMediaWorkflowList.MediaWorkflowList["+ i +"].MediaWorkflowId");
mediaWorkflow.Name = context.StringValue("QueryMediaWorkflowList.MediaWorkflowList["+ i +"].Name");
mediaWorkflow.Topology = context.StringValue("QueryMediaWorkflowList.MediaWorkflowList["+ i +"].Topology");
mediaWorkflow.State = context.StringValue("QueryMediaWorkflowList.MediaWorkflowList["+ i +"].State");
mediaWorkflow.CreationTime = context.StringValue("QueryMediaWorkflowList.MediaWorkflowList["+ i +"].CreationTime");
mediaWorkflowList.Add(mediaWorkflow);
}
queryMediaWorkflowListResponse.MediaWorkflowList = mediaWorkflowList;
return queryMediaWorkflowListResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:28,代码来源:QueryMediaWorkflowListResponseUnmarshaller.cs
示例2: Unmarshall
public static DescribeDomainHttpCodeDataResponse Unmarshall(UnmarshallerContext context)
{
DescribeDomainHttpCodeDataResponse describeDomainHttpCodeDataResponse = new DescribeDomainHttpCodeDataResponse();
describeDomainHttpCodeDataResponse.HttpResponse = context.HttpResponse;
describeDomainHttpCodeDataResponse.RequestId = context.StringValue("DescribeDomainHttpCodeData.RequestId");
describeDomainHttpCodeDataResponse.DomainName = context.StringValue("DescribeDomainHttpCodeData.DomainName");
describeDomainHttpCodeDataResponse.DataInterval = context.StringValue("DescribeDomainHttpCodeData.DataInterval");
describeDomainHttpCodeDataResponse.StartTime = context.StringValue("DescribeDomainHttpCodeData.StartTime");
describeDomainHttpCodeDataResponse.EndTime = context.StringValue("DescribeDomainHttpCodeData.EndTime");
List<DescribeDomainHttpCodeDataResponse.UsageData> httpCodeData = new List<DescribeDomainHttpCodeDataResponse.UsageData>();
for (int i = 0; i < context.Length("DescribeDomainHttpCodeData.HttpCodeData.Length"); i++) {
DescribeDomainHttpCodeDataResponse.UsageData usageData = new DescribeDomainHttpCodeDataResponse.UsageData();
usageData.TimeStamp = context.StringValue("DescribeDomainHttpCodeData.HttpCodeData["+ i +"].TimeStamp");
List<DescribeDomainHttpCodeDataResponse.UsageData.CodeProportionData> value = new List<DescribeDomainHttpCodeDataResponse.UsageData.CodeProportionData>();
for (int j = 0; j < context.Length("DescribeDomainHttpCodeData.HttpCodeData["+ i +"].Value.Length"); j++) {
DescribeDomainHttpCodeDataResponse.UsageData.CodeProportionData codeProportionData = new DescribeDomainHttpCodeDataResponse.UsageData.CodeProportionData();
codeProportionData.Code = context.StringValue("DescribeDomainHttpCodeData.HttpCodeData["+ i +"].Value["+ j +"].Code");
codeProportionData.Proportion = context.StringValue("DescribeDomainHttpCodeData.HttpCodeData["+ i +"].Value["+ j +"].Proportion");
value.Add(codeProportionData);
}
usageData.Value = value;
httpCodeData.Add(usageData);
}
describeDomainHttpCodeDataResponse.HttpCodeData = httpCodeData;
return describeDomainHttpCodeDataResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:32,代码来源:DescribeDomainHttpCodeDataResponseUnmarshaller.cs
示例3: Unmarshall
public static QueryWaterMarkTemplateListResponse Unmarshall(UnmarshallerContext context)
{
QueryWaterMarkTemplateListResponse queryWaterMarkTemplateListResponse = new QueryWaterMarkTemplateListResponse();
queryWaterMarkTemplateListResponse.HttpResponse = context.HttpResponse;
queryWaterMarkTemplateListResponse.RequestId = context.StringValue("QueryWaterMarkTemplateList.RequestId");
List<string> nonExistWids = new List<string>();
for (int i = 0; i < context.Length("QueryWaterMarkTemplateList.NonExistWids.Length"); i++) {
nonExistWids.Add(context.StringValue("QueryWaterMarkTemplateList.NonExistWids["+ i +"]"));
}
queryWaterMarkTemplateListResponse.NonExistWids = nonExistWids;
List<QueryWaterMarkTemplateListResponse.WaterMarkTemplate> waterMarkTemplateList = new List<QueryWaterMarkTemplateListResponse.WaterMarkTemplate>();
for (int i = 0; i < context.Length("QueryWaterMarkTemplateList.WaterMarkTemplateList.Length"); i++) {
QueryWaterMarkTemplateListResponse.WaterMarkTemplate waterMarkTemplate = new QueryWaterMarkTemplateListResponse.WaterMarkTemplate();
waterMarkTemplate.Id = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Id");
waterMarkTemplate.Name = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Name");
waterMarkTemplate.Width = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Width");
waterMarkTemplate.Height = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Height");
waterMarkTemplate.Dx = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Dx");
waterMarkTemplate.Dy = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Dy");
waterMarkTemplate.ReferPos = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].ReferPos");
waterMarkTemplate.Type = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].Type");
waterMarkTemplate.State = context.StringValue("QueryWaterMarkTemplateList.WaterMarkTemplateList["+ i +"].State");
waterMarkTemplateList.Add(waterMarkTemplate);
}
queryWaterMarkTemplateListResponse.WaterMarkTemplateList = waterMarkTemplateList;
return queryWaterMarkTemplateListResponse;
}
开发者ID:aliyun,项目名称:aliyun-openapi-net-sdk,代码行数:32,代码来源:QueryWaterMarkTemplateListResponseUnmarshaller.cs
示例4: Unmarshall
public static DescribeApiErrorDataResponse Unmarshall(UnmarshallerContext context)
{
DescribeApiErrorDataResponse describeApiErrorDataResponse = new DescribeApiErrorDataResponse();
describeApiErrorDataResponse.HttpResponse = context.HttpResponse;
describeApiErrorDataResponse.RequestId = context.StringValue("DescribeApiErrorData.RequestId");
List<DescribeApiErrorDataResponse.MonitorItem> clientErrors = new List<DescribeApiErrorDataResponse.MonitorItem>();
for (int i = 0; i < context.Length("DescribeApiErrorData.ClientErrors.Length"); i++) {
DescribeApiErrorDataResponse.MonitorItem monitorItem = new DescribeApiErrorDataResponse.MonitorItem();
monitorItem.ItemTime = context.StringValue("DescribeApiErrorData.ClientErrors["+ i +"].ItemTime");
monitorItem.ItemValue = context.StringValue("DescribeApiErrorData.ClientErrors["+ i +"].ItemValue");
clientErrors.Add(monitorItem);
}
describeApiErrorDataResponse.ClientErrors = clientErrors;
List<DescribeApiErrorDataResponse.MonitorItem> serverErrors = new List<DescribeApiErrorDataResponse.MonitorItem>();
for (int i = 0; i < context.Length("DescribeApiErrorData.ServerErrors.Length"); i++) {
DescribeApiErrorDataResponse.MonitorItem monitorItem = new DescribeApiErrorDataResponse.MonitorItem();
monitorItem.ItemTime = context.StringValue("DescribeApiErrorData.ServerErrors["+ i +"].ItemTime");
monitorItem.ItemValue = context.StringValue("DescribeApiErrorData.ServerErrors["+ i +"].ItemValue");
serverErrors.Add(monitorItem);
}
describeApiErrorDataResponse.ServerErrors = serverErrors;
return describeApiErrorDataResponse;
}
示例5: Unmarshall
public static DescribeAccountsResponse Unmarshall(UnmarshallerContext context)
{
DescribeAccountsResponse describeAccountsResponse = new DescribeAccountsResponse();
describeAccountsResponse.HttpResponse = context.HttpResponse;
describeAccountsResponse.RequestId = context.StringValue("DescribeAccounts.RequestId");
List<DescribeAccountsResponse.DBInstanceAccount> accounts = new List<DescribeAccountsResponse.DBInstanceAccount>();
for (int i = 0; i < context.Length("DescribeAccounts.Accounts.Length"); i++) {
DescribeAccountsResponse.DBInstanceAccount dBInstanceAccount = new DescribeAccountsResponse.DBInstanceAccount();
dBInstanceAccount.DBInstanceId = context.StringValue("DescribeAccounts.Accounts["+ i +"].DBInstanceId");
dBInstanceAccount.AccountName = context.StringValue("DescribeAccounts.Accounts["+ i +"].AccountName");
dBInstanceAccount.AccountStatus = context.EnumValue<DescribeAccountsResponse.DBInstanceAccount.AccountStatusEnum>("DescribeAccounts.Accounts["+ i +"].AccountStatus");
dBInstanceAccount.AccountType = context.EnumValue<DescribeAccountsResponse.DBInstanceAccount.AccountTypeEnum>("DescribeAccounts.Accounts["+ i +"].AccountType");
dBInstanceAccount.AccountDescription = context.StringValue("DescribeAccounts.Accounts["+ i +"].AccountDescription");
List<DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege> databasePrivileges = new List<DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege>();
for (int j = 0; j < context.Length("DescribeAccounts.Accounts["+ i +"].DatabasePrivileges.Length"); j++) {
DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege databasePrivilege = new DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege();
databasePrivilege.DBName = context.StringValue("DescribeAccounts.Accounts["+ i +"].DatabasePrivileges["+ j +"].DBName");
databasePrivilege.AccountPrivilege = context.StringValue("DescribeAccounts.Accounts["+ i +"].DatabasePrivileges["+ j +"].AccountPrivilege");
databasePrivileges.Add(databasePrivilege);
}
dBInstanceAccount.DatabasePrivileges = databasePrivileges;
accounts.Add(dBInstanceAccount);
}
describeAccountsResponse.Accounts = accounts;
return describeAccountsResponse;
}
示例6: Unmarshall
public static DescribeApiTrafficDataResponse Unmarshall(UnmarshallerContext context)
{
DescribeApiTrafficDataResponse describeApiTrafficDataResponse = new DescribeApiTrafficDataResponse();
describeApiTrafficDataResponse.HttpResponse = context.HttpResponse;
describeApiTrafficDataResponse.RequestId = context.StringValue("DescribeApiTrafficData.RequestId");
List<DescribeApiTrafficDataResponse.MonitorItem> callUploads = new List<DescribeApiTrafficDataResponse.MonitorItem>();
for (int i = 0; i < context.Length("DescribeApiTrafficData.CallUploads.Length"); i++) {
DescribeApiTrafficDataResponse.MonitorItem monitorItem = new DescribeApiTrafficDataResponse.MonitorItem();
monitorItem.ItemTime = context.StringValue("DescribeApiTrafficData.CallUploads["+ i +"].ItemTime");
monitorItem.ItemValue = context.StringValue("DescribeApiTrafficData.CallUploads["+ i +"].ItemValue");
callUploads.Add(monitorItem);
}
describeApiTrafficDataResponse.CallUploads = callUploads;
List<DescribeApiTrafficDataResponse.MonitorItem> callDownloads = new List<DescribeApiTrafficDataResponse.MonitorItem>();
for (int i = 0; i < context.Length("DescribeApiTrafficData.CallDownloads.Length"); i++) {
DescribeApiTrafficDataResponse.MonitorItem monitorItem = new DescribeApiTrafficDataResponse.MonitorItem();
monitorItem.ItemTime = context.StringValue("DescribeApiTrafficData.CallDownloads["+ i +"].ItemTime");
monitorItem.ItemValue = context.StringValue("DescribeApiTrafficData.CallDownloads["+ i +"].ItemValue");
callDownloads.Add(monitorItem);
}
describeApiTrafficDataResponse.CallDownloads = callDownloads;
return describeApiTrafficDataResponse;
}
示例7: 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
示例8: Unmarshall
public static DescribeDBInstancePerformanceResponse Unmarshall(UnmarshallerContext context)
{
DescribeDBInstancePerformanceResponse describeDBInstancePerformanceResponse = new DescribeDBInstancePerformanceResponse();
describeDBInstancePerformanceResponse.HttpResponse = context.HttpResponse;
describeDBInstancePerformanceResponse.RequestId = context.StringValue("DescribeDBInstancePerformance.RequestId");
describeDBInstancePerformanceResponse.DBInstanceId = context.StringValue("DescribeDBInstancePerformance.DBInstanceId");
describeDBInstancePerformanceResponse.Engine = context.StringValue("DescribeDBInstancePerformance.Engine");
describeDBInstancePerformanceResponse.StartTime = context.StringValue("DescribeDBInstancePerformance.StartTime");
describeDBInstancePerformanceResponse.EndTime = context.StringValue("DescribeDBInstancePerformance.EndTime");
List<DescribeDBInstancePerformanceResponse.PerformanceKey> performanceKeys = new List<DescribeDBInstancePerformanceResponse.PerformanceKey>();
for (int i = 0; i < context.Length("DescribeDBInstancePerformance.PerformanceKeys.Length"); i++) {
DescribeDBInstancePerformanceResponse.PerformanceKey performanceKey = new DescribeDBInstancePerformanceResponse.PerformanceKey();
performanceKey.Key = context.StringValue("DescribeDBInstancePerformance.PerformanceKeys["+ i +"].Key");
performanceKey.Unit = context.StringValue("DescribeDBInstancePerformance.PerformanceKeys["+ i +"].Unit");
performanceKey.ValueFormat = context.StringValue("DescribeDBInstancePerformance.PerformanceKeys["+ i +"].ValueFormat");
List<DescribeDBInstancePerformanceResponse.PerformanceKey.PerformanceValue> values = new List<DescribeDBInstancePerformanceResponse.PerformanceKey.PerformanceValue>();
for (int j = 0; j < context.Length("DescribeDBInstancePerformance.PerformanceKeys["+ i +"].Values.Length"); j++) {
DescribeDBInstancePerformanceResponse.PerformanceKey.PerformanceValue performanceValue = new DescribeDBInstancePerformanceResponse.PerformanceKey.PerformanceValue();
performanceValue.Value = context.StringValue("DescribeDBInstancePerformance.PerformanceKeys["+ i +"].Values["+ j +"].Value");
performanceValue.Date = context.StringValue("DescribeDBInstancePerformance.PerformanceKeys["+ i +"].Values["+ j +"].Date");
values.Add(performanceValue);
}
performanceKey.Values = values;
performanceKeys.Add(performanceKey);
}
describeDBInstancePerformanceResponse.PerformanceKeys = performanceKeys;
return describeDBInstancePerformanceResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:34,代码来源:DescribeDBInstancePerformanceResponseUnmarshaller.cs
示例9: Unmarshall
public static DescribeZonesResponse Unmarshall(UnmarshallerContext context)
{
DescribeZonesResponse describeZonesResponse = new DescribeZonesResponse();
describeZonesResponse.HttpResponse = context.HttpResponse;
describeZonesResponse.RequestId = context.StringValue("DescribeZones.RequestId");
List<DescribeZonesResponse.Zone> zones = new List<DescribeZonesResponse.Zone>();
for (int i = 0; i < context.Length("DescribeZones.Zones.Length"); i++) {
DescribeZonesResponse.Zone zone = new DescribeZonesResponse.Zone();
zone.ZoneId = context.StringValue("DescribeZones.Zones["+ i +"].ZoneId");
zone.LocalName = context.StringValue("DescribeZones.Zones["+ i +"].LocalName");
List<DescribeZonesResponse.Zone.SlaveZone> slaveZones = new List<DescribeZonesResponse.Zone.SlaveZone>();
for (int j = 0; j < context.Length("DescribeZones.Zones["+ i +"].SlaveZones.Length"); j++) {
DescribeZonesResponse.Zone.SlaveZone slaveZone = new DescribeZonesResponse.Zone.SlaveZone();
slaveZone.ZoneId = context.StringValue("DescribeZones.Zones["+ i +"].SlaveZones["+ j +"].ZoneId");
slaveZone.LocalName = context.StringValue("DescribeZones.Zones["+ i +"].SlaveZones["+ j +"].LocalName");
slaveZones.Add(slaveZone);
}
zone.SlaveZones = slaveZones;
zones.Add(zone);
}
describeZonesResponse.Zones = zones;
return describeZonesResponse;
}
示例10: Unmarshall
public static DescribeDatabasesResponse Unmarshall(UnmarshallerContext context)
{
DescribeDatabasesResponse describeDatabasesResponse = new DescribeDatabasesResponse();
describeDatabasesResponse.HttpResponse = context.HttpResponse;
describeDatabasesResponse.RequestId = context.StringValue("DescribeDatabases.RequestId");
List<DescribeDatabasesResponse.Database> databases = new List<DescribeDatabasesResponse.Database>();
for (int i = 0; i < context.Length("DescribeDatabases.Databases.Length"); i++) {
DescribeDatabasesResponse.Database database = new DescribeDatabasesResponse.Database();
database.DBName = context.StringValue("DescribeDatabases.Databases["+ i +"].DBName");
database.DBInstanceId = context.StringValue("DescribeDatabases.Databases["+ i +"].DBInstanceId");
database.Engine = context.StringValue("DescribeDatabases.Databases["+ i +"].Engine");
database.DBStatus = context.EnumValue<DescribeDatabasesResponse.Database.DBStatusEnum>("DescribeDatabases.Databases["+ i +"].DBStatus");
database.CharacterSetName = context.StringValue("DescribeDatabases.Databases["+ i +"].CharacterSetName");
database.DBDescription = context.StringValue("DescribeDatabases.Databases["+ i +"].DBDescription");
List<DescribeDatabasesResponse.Database.AccountPrivilegeInfo> accounts = new List<DescribeDatabasesResponse.Database.AccountPrivilegeInfo>();
for (int j = 0; j < context.Length("DescribeDatabases.Databases["+ i +"].Accounts.Length"); j++) {
DescribeDatabasesResponse.Database.AccountPrivilegeInfo accountPrivilegeInfo = new DescribeDatabasesResponse.Database.AccountPrivilegeInfo();
accountPrivilegeInfo.Account = context.StringValue("DescribeDatabases.Databases["+ i +"].Accounts["+ j +"].Account");
accountPrivilegeInfo.AccountPrivilege = context.StringValue("DescribeDatabases.Databases["+ i +"].Accounts["+ j +"].AccountPrivilege");
accounts.Add(accountPrivilegeInfo);
}
database.Accounts = accounts;
databases.Add(database);
}
describeDatabasesResponse.Databases = databases;
return describeDatabasesResponse;
}
示例11: Unmarshall
public static QueryPipelineListResponse Unmarshall(UnmarshallerContext context)
{
QueryPipelineListResponse queryPipelineListResponse = new QueryPipelineListResponse();
queryPipelineListResponse.HttpResponse = context.HttpResponse;
queryPipelineListResponse.RequestId = context.StringValue("QueryPipelineList.RequestId");
List<string> nonExistPids = new List<string>();
for (int i = 0; i < context.Length("QueryPipelineList.NonExistPids.Length"); i++) {
nonExistPids.Add(context.StringValue("QueryPipelineList.NonExistPids["+ i +"]"));
}
queryPipelineListResponse.NonExistPids = nonExistPids;
List<QueryPipelineListResponse.Pipeline> pipelineList = new List<QueryPipelineListResponse.Pipeline>();
for (int i = 0; i < context.Length("QueryPipelineList.PipelineList.Length"); i++) {
QueryPipelineListResponse.Pipeline pipeline = new QueryPipelineListResponse.Pipeline();
pipeline.Id = context.StringValue("QueryPipelineList.PipelineList["+ i +"].Id");
pipeline.Name = context.StringValue("QueryPipelineList.PipelineList["+ i +"].Name");
pipeline.State = context.StringValue("QueryPipelineList.PipelineList["+ i +"].State");
pipeline.Speed = context.StringValue("QueryPipelineList.PipelineList["+ i +"].Speed");
pipeline.Role = context.StringValue("QueryPipelineList.PipelineList["+ i +"].Role");
QueryPipelineListResponse.Pipeline.NotifyConfig_ notifyConfig = new QueryPipelineListResponse.Pipeline.NotifyConfig_();
notifyConfig.Topic = context.StringValue("QueryPipelineList.PipelineList["+ i +"].NotifyConfig.Topic");
notifyConfig.QueueName = context.StringValue("QueryPipelineList.PipelineList["+ i +"].NotifyConfig.QueueName");
pipeline.NotifyConfig = notifyConfig;
pipelineList.Add(pipeline);
}
queryPipelineListResponse.PipelineList = pipelineList;
return queryPipelineListResponse;
}
示例12: Unmarshall
public static DescribeImageSharePermissionResponse Unmarshall(UnmarshallerContext context)
{
DescribeImageSharePermissionResponse describeImageSharePermissionResponse = new DescribeImageSharePermissionResponse();
describeImageSharePermissionResponse.HttpResponse = context.HttpResponse;
describeImageSharePermissionResponse.RequestId = context.StringValue("DescribeImageSharePermission.RequestId");
describeImageSharePermissionResponse.RegionId = context.StringValue("DescribeImageSharePermission.RegionId");
describeImageSharePermissionResponse.TotalCount = context.IntegerValue("DescribeImageSharePermission.TotalCount");
describeImageSharePermissionResponse.PageNumber = context.IntegerValue("DescribeImageSharePermission.PageNumber");
describeImageSharePermissionResponse.PageSize = context.IntegerValue("DescribeImageSharePermission.PageSize");
describeImageSharePermissionResponse.ImageId = context.StringValue("DescribeImageSharePermission.ImageId");
List<DescribeImageSharePermissionResponse.ShareGroup> shareGroups = new List<DescribeImageSharePermissionResponse.ShareGroup>();
for (int i = 0; i < context.Length("DescribeImageSharePermission.ShareGroups.Length"); i++) {
DescribeImageSharePermissionResponse.ShareGroup shareGroup = new DescribeImageSharePermissionResponse.ShareGroup();
shareGroup.Group = context.StringValue("DescribeImageSharePermission.ShareGroups["+ i +"].Group");
shareGroups.Add(shareGroup);
}
describeImageSharePermissionResponse.ShareGroups = shareGroups;
List<DescribeImageSharePermissionResponse.Account> accounts = new List<DescribeImageSharePermissionResponse.Account>();
for (int i = 0; i < context.Length("DescribeImageSharePermission.Accounts.Length"); i++) {
DescribeImageSharePermissionResponse.Account account = new DescribeImageSharePermissionResponse.Account();
account.AliyunId = context.StringValue("DescribeImageSharePermission.Accounts["+ i +"].AliyunId");
accounts.Add(account);
}
describeImageSharePermissionResponse.Accounts = accounts;
return describeImageSharePermissionResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:32,代码来源:DescribeImageSharePermissionResponseUnmarshaller.cs
示例13: Unmarshall
public static DescribeDomainWafDataResponse Unmarshall(UnmarshallerContext context)
{
DescribeDomainWafDataResponse describeDomainWafDataResponse = new DescribeDomainWafDataResponse();
describeDomainWafDataResponse.HttpResponse = context.HttpResponse;
describeDomainWafDataResponse.RequestId = context.StringValue("DescribeDomainWafData.RequestId");
describeDomainWafDataResponse.DomainName = context.StringValue("DescribeDomainWafData.DomainName");
describeDomainWafDataResponse.DataInterval = context.StringValue("DescribeDomainWafData.DataInterval");
describeDomainWafDataResponse.StartTime = context.StringValue("DescribeDomainWafData.StartTime");
describeDomainWafDataResponse.EndTime = context.StringValue("DescribeDomainWafData.EndTime");
List<DescribeDomainWafDataResponse.WafDatas> wafDataList = new List<DescribeDomainWafDataResponse.WafDatas>();
for (int i = 0; i < context.Length("DescribeDomainWafData.WafDataList.Length"); i++) {
DescribeDomainWafDataResponse.WafDatas wafDatas = new DescribeDomainWafDataResponse.WafDatas();
wafDatas.TimeStamp = context.StringValue("DescribeDomainWafData.WafDataList["+ i +"].TimeStamp");
List<string> value = new List<string>();
for (int j = 0; j < context.Length("DescribeDomainWafData.WafDataList["+ i +"].Value.Length"); j++) {
value.Add(context.StringValue("DescribeDomainWafData.WafDataList["+ i +"].Value["+ j +"]"));
}
wafDatas.Value = value;
wafDataList.Add(wafDatas);
}
describeDomainWafDataResponse.WafDataList = wafDataList;
return describeDomainWafDataResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:28,代码来源:DescribeDomainWafDataResponseUnmarshaller.cs
示例14: Unmarshall
public static DescribeCdnRegionAndIspResponse Unmarshall(UnmarshallerContext context)
{
DescribeCdnRegionAndIspResponse describeCdnRegionAndIspResponse = new DescribeCdnRegionAndIspResponse();
describeCdnRegionAndIspResponse.HttpResponse = context.HttpResponse;
describeCdnRegionAndIspResponse.RequestId = context.StringValue("DescribeCdnRegionAndIsp.RequestId");
List<DescribeCdnRegionAndIspResponse.Region> regions = new List<DescribeCdnRegionAndIspResponse.Region>();
for (int i = 0; i < context.Length("DescribeCdnRegionAndIsp.Regions.Length"); i++) {
DescribeCdnRegionAndIspResponse.Region region = new DescribeCdnRegionAndIspResponse.Region();
region.NameZh = context.StringValue("DescribeCdnRegionAndIsp.Regions["+ i +"].NameZh");
region.NameEn = context.StringValue("DescribeCdnRegionAndIsp.Regions["+ i +"].NameEn");
regions.Add(region);
}
describeCdnRegionAndIspResponse.Regions = regions;
List<DescribeCdnRegionAndIspResponse.Isp> isps = new List<DescribeCdnRegionAndIspResponse.Isp>();
for (int i = 0; i < context.Length("DescribeCdnRegionAndIsp.Isps.Length"); i++) {
DescribeCdnRegionAndIspResponse.Isp isp = new DescribeCdnRegionAndIspResponse.Isp();
isp.NameZh = context.StringValue("DescribeCdnRegionAndIsp.Isps["+ i +"].NameZh");
isp.NameEn = context.StringValue("DescribeCdnRegionAndIsp.Isps["+ i +"].NameEn");
isps.Add(isp);
}
describeCdnRegionAndIspResponse.Isps = isps;
return describeCdnRegionAndIspResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:29,代码来源:DescribeCdnRegionAndIspResponseUnmarshaller.cs
示例15: Unmarshall
public static DescribeVRoutersResponse Unmarshall(UnmarshallerContext context)
{
DescribeVRoutersResponse describeVRoutersResponse = new DescribeVRoutersResponse();
describeVRoutersResponse.HttpResponse = context.HttpResponse;
describeVRoutersResponse.RequestId = context.StringValue("DescribeVRouters.RequestId");
describeVRoutersResponse.TotalCount = context.IntegerValue("DescribeVRouters.TotalCount");
describeVRoutersResponse.PageNumber = context.IntegerValue("DescribeVRouters.PageNumber");
describeVRoutersResponse.PageSize = context.IntegerValue("DescribeVRouters.PageSize");
List<DescribeVRoutersResponse.VRouter> vRouters = new List<DescribeVRoutersResponse.VRouter>();
for (int i = 0; i < context.Length("DescribeVRouters.VRouters.Length"); i++) {
DescribeVRoutersResponse.VRouter vRouter = new DescribeVRoutersResponse.VRouter();
vRouter.RegionId = context.StringValue("DescribeVRouters.VRouters["+ i +"].RegionId");
vRouter.VpcId = context.StringValue("DescribeVRouters.VRouters["+ i +"].VpcId");
vRouter.VRouterName = context.StringValue("DescribeVRouters.VRouters["+ i +"].VRouterName");
vRouter.Description = context.StringValue("DescribeVRouters.VRouters["+ i +"].Description");
vRouter.VRouterId = context.StringValue("DescribeVRouters.VRouters["+ i +"].VRouterId");
vRouter.CreationTime = context.StringValue("DescribeVRouters.VRouters["+ i +"].CreationTime");
List<string> routeTableIds = new List<string>();
for (int j = 0; j < context.Length("DescribeVRouters.VRouters["+ i +"].RouteTableIds.Length"); j++) {
routeTableIds.Add(context.StringValue("DescribeVRouters.VRouters["+ i +"].RouteTableIds["+ j +"]"));
}
vRouter.RouteTableIds = routeTableIds;
vRouters.Add(vRouter);
}
describeVRoutersResponse.VRouters = vRouters;
return describeVRoutersResponse;
}