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


C# UnmarshallerContext.StringValue方法代码示例

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


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

示例1: Unmarshall

        public static DescribeAppAttributesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAppAttributesResponse describeAppAttributesResponse = new DescribeAppAttributesResponse();

            describeAppAttributesResponse.HttpResponse = context.HttpResponse;
            describeAppAttributesResponse.RequestId = context.StringValue("DescribeAppAttributes.RequestId");
            describeAppAttributesResponse.TotalCount = context.IntegerValue("DescribeAppAttributes.TotalCount");
            describeAppAttributesResponse.PageSize = context.IntegerValue("DescribeAppAttributes.PageSize");
            describeAppAttributesResponse.PageNumber = context.IntegerValue("DescribeAppAttributes.PageNumber");

            List<DescribeAppAttributesResponse.AppAttribute> apps = new List<DescribeAppAttributesResponse.AppAttribute>();
            for (int i = 0; i < context.Length("DescribeAppAttributes.Apps.Length"); i++) {
                DescribeAppAttributesResponse.AppAttribute appAttribute = new DescribeAppAttributesResponse.AppAttribute();
                appAttribute.AppId = context.LongValue("DescribeAppAttributes.Apps["+ i +"].AppId");
                appAttribute.AppName = context.StringValue("DescribeAppAttributes.Apps["+ i +"].AppName");
                appAttribute.Description = context.StringValue("DescribeAppAttributes.Apps["+ i +"].Description");
                appAttribute.CreatedTime = context.StringValue("DescribeAppAttributes.Apps["+ i +"].CreatedTime");
                appAttribute.ModifiedTime = context.StringValue("DescribeAppAttributes.Apps["+ i +"].ModifiedTime");

                apps.Add(appAttribute);
            }
            describeAppAttributesResponse.Apps = apps;

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

示例2: Unmarshall

        public static DescribeCdnDomainBaseDetailResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCdnDomainBaseDetailResponse describeCdnDomainBaseDetailResponse = new DescribeCdnDomainBaseDetailResponse();

            describeCdnDomainBaseDetailResponse.HttpResponse = context.HttpResponse;
            describeCdnDomainBaseDetailResponse.RequestId = context.StringValue("DescribeCdnDomainBaseDetail.RequestId");

            DescribeCdnDomainBaseDetailResponse.DomainBaseDetailModel_ domainBaseDetailModel = new DescribeCdnDomainBaseDetailResponse.DomainBaseDetailModel_();
            domainBaseDetailModel.Cname = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.Cname");
            domainBaseDetailModel.CdnType = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.CdnType");
            domainBaseDetailModel.DomainStatus = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.DomainStatus");
            domainBaseDetailModel.SourceType = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.SourceType");
            domainBaseDetailModel.DomainName = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.DomainName");
            domainBaseDetailModel.Remark = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.Remark");
            domainBaseDetailModel.GmtModified = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.GmtModified");
            domainBaseDetailModel.GmtCreated = context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.GmtCreated");

            List<string> sources = new List<string>();
            for (int i = 0; i < context.Length("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.Sources.Length"); i++) {
                sources.Add(context.StringValue("DescribeCdnDomainBaseDetail.DomainBaseDetailModel.Sources["+ i +"]"));
            }
            domainBaseDetailModel.Sources = sources;
            describeCdnDomainBaseDetailResponse.DomainBaseDetailModel = domainBaseDetailModel;

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

示例3: Unmarshall

        public static DescribeVSwitchesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVSwitchesResponse describeVSwitchesResponse = new DescribeVSwitchesResponse();

            describeVSwitchesResponse.HttpResponse = context.HttpResponse;
            describeVSwitchesResponse.RequestId = context.StringValue("DescribeVSwitches.RequestId");
            describeVSwitchesResponse.TotalCount = context.IntegerValue("DescribeVSwitches.TotalCount");
            describeVSwitchesResponse.PageNumber = context.IntegerValue("DescribeVSwitches.PageNumber");
            describeVSwitchesResponse.PageSize = context.IntegerValue("DescribeVSwitches.PageSize");

            List<DescribeVSwitchesResponse.VSwitch> vSwitches = new List<DescribeVSwitchesResponse.VSwitch>();
            for (int i = 0; i < context.Length("DescribeVSwitches.VSwitches.Length"); i++) {
                DescribeVSwitchesResponse.VSwitch vSwitch = new DescribeVSwitchesResponse.VSwitch();
                vSwitch.VSwitchId = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].VSwitchId");
                vSwitch.VpcId = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].VpcId");
                vSwitch.Status = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].Status");
                vSwitch.CidrBlock = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].CidrBlock");
                vSwitch.ZoneId = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].ZoneId");
                vSwitch.AvailableIpAddressCount = context.LongValue("DescribeVSwitches.VSwitches["+ i +"].AvailableIpAddressCount");
                vSwitch.Description = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].Description");
                vSwitch.VSwitchName = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].VSwitchName");
                vSwitch.CreationTime = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].CreationTime");
                vSwitch.IsDefault = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].IsDefault");

                vSwitches.Add(vSwitch);
            }
            describeVSwitchesResponse.VSwitches = vSwitches;

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

示例4: 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

示例5: 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

示例6: Unmarshall

        public static DescribeHistoryApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeHistoryApisResponse describeHistoryApisResponse = new DescribeHistoryApisResponse();

            describeHistoryApisResponse.HttpResponse = context.HttpResponse;
            describeHistoryApisResponse.RequestId = context.StringValue("DescribeHistoryApis.RequestId");
            describeHistoryApisResponse.TotalCount = context.IntegerValue("DescribeHistoryApis.TotalCount");
            describeHistoryApisResponse.PageSize = context.IntegerValue("DescribeHistoryApis.PageSize");
            describeHistoryApisResponse.PageNumber = context.IntegerValue("DescribeHistoryApis.PageNumber");

            List<DescribeHistoryApisResponse.ApiHisItem> apiHisItems = new List<DescribeHistoryApisResponse.ApiHisItem>();
            for (int i = 0; i < context.Length("DescribeHistoryApis.ApiHisItems.Length"); i++) {
                DescribeHistoryApisResponse.ApiHisItem apiHisItem = new DescribeHistoryApisResponse.ApiHisItem();
                apiHisItem.RegionId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].RegionId");
                apiHisItem.ApiId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].ApiId");
                apiHisItem.ApiName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].ApiName");
                apiHisItem.GroupId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].GroupId");
                apiHisItem.GroupName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].GroupName");
                apiHisItem.StageName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].StageName");
                apiHisItem.HistoryVersion = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].HistoryVersion");
                apiHisItem.Status = context.EnumValue<DescribeHistoryApisResponse.ApiHisItem.StatusEnum>("DescribeHistoryApis.ApiHisItems["+ i +"].Status");
                apiHisItem.Description = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].Description");
                apiHisItem.DeployedTime = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].DeployedTime");

                apiHisItems.Add(apiHisItem);
            }
            describeHistoryApisResponse.ApiHisItems = apiHisItems;

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

示例7: 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

示例8: Unmarshall

        public static DescribeRealtimeDiagnosesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeRealtimeDiagnosesResponse describeRealtimeDiagnosesResponse = new DescribeRealtimeDiagnosesResponse();

            describeRealtimeDiagnosesResponse.HttpResponse = context.HttpResponse;
            describeRealtimeDiagnosesResponse.RequestId = context.StringValue("DescribeRealtimeDiagnoses.RequestId");
            describeRealtimeDiagnosesResponse.Engine = context.StringValue("DescribeRealtimeDiagnoses.Engine");
            describeRealtimeDiagnosesResponse.TotalRecordCount = context.IntegerValue("DescribeRealtimeDiagnoses.TotalRecordCount");
            describeRealtimeDiagnosesResponse.PageNumber = context.IntegerValue("DescribeRealtimeDiagnoses.PageNumber");
            describeRealtimeDiagnosesResponse.PageRecordCount = context.IntegerValue("DescribeRealtimeDiagnoses.PageRecordCount");

            List<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks> tasks = new List<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks>();
            for (int i = 0; i < context.Length("DescribeRealtimeDiagnoses.Tasks.Length"); i++) {
                DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks realtimeDiagnoseTasks = new DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks();
                realtimeDiagnoseTasks.CreateTime = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].CreateTime");
                realtimeDiagnoseTasks.TaskId = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].TaskId");
                realtimeDiagnoseTasks.HealthScore = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].HealthScore");
                realtimeDiagnoseTasks.Status = context.EnumValue<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks.StatusEnum>("DescribeRealtimeDiagnoses.Tasks["+ i +"].Status");

                tasks.Add(realtimeDiagnoseTasks);
            }
            describeRealtimeDiagnosesResponse.Tasks = tasks;

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

示例9: Unmarshall

        public static QuerySmsDetailByPageResponse Unmarshall(UnmarshallerContext context)
        {
            QuerySmsDetailByPageResponse querySmsDetailByPageResponse = new QuerySmsDetailByPageResponse();

            querySmsDetailByPageResponse.HttpResponse = context.HttpResponse;
            querySmsDetailByPageResponse.RequestId = context.StringValue("QuerySmsDetailByPage.RequestId");
            querySmsDetailByPageResponse.PageNumber = context.IntegerValue("QuerySmsDetailByPage.PageNumber");
            querySmsDetailByPageResponse.PageSize = context.IntegerValue("QuerySmsDetailByPage.PageSize");
            querySmsDetailByPageResponse.TotalCount = context.IntegerValue("QuerySmsDetailByPage.TotalCount");

            List<QuerySmsDetailByPageResponse.stat> data = new List<QuerySmsDetailByPageResponse.stat>();
            for (int i = 0; i < context.Length("QuerySmsDetailByPage.data.Length"); i++) {
                QuerySmsDetailByPageResponse.stat stat = new QuerySmsDetailByPageResponse.stat();
                stat.ReceiverNum = context.StringValue("QuerySmsDetailByPage.data["+ i +"].ReceiverNum");
                stat.SmsCode = context.StringValue("QuerySmsDetailByPage.data["+ i +"].SmsCode");
                stat.SmsContent = context.StringValue("QuerySmsDetailByPage.data["+ i +"].SmsContent");
                stat.SmsStatus = context.IntegerValue("QuerySmsDetailByPage.data["+ i +"].SmsStatus");
                stat.ResultCode = context.StringValue("QuerySmsDetailByPage.data["+ i +"].ResultCode");

                data.Add(stat);
            }
            querySmsDetailByPageResponse.Data = data;

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

示例10: Unmarshall

        public static DescribeDeployedApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDeployedApisResponse describeDeployedApisResponse = new DescribeDeployedApisResponse();

            describeDeployedApisResponse.HttpResponse = context.HttpResponse;
            describeDeployedApisResponse.RequestId = context.StringValue("DescribeDeployedApis.RequestId");
            describeDeployedApisResponse.TotalCount = context.IntegerValue("DescribeDeployedApis.TotalCount");
            describeDeployedApisResponse.PageSize = context.IntegerValue("DescribeDeployedApis.PageSize");
            describeDeployedApisResponse.PageNumber = context.IntegerValue("DescribeDeployedApis.PageNumber");

            List<DescribeDeployedApisResponse.DeployedApiItem> deployedApis = new List<DescribeDeployedApisResponse.DeployedApiItem>();
            for (int i = 0; i < context.Length("DescribeDeployedApis.DeployedApis.Length"); i++) {
                DescribeDeployedApisResponse.DeployedApiItem deployedApiItem = new DescribeDeployedApisResponse.DeployedApiItem();
                deployedApiItem.RegionId = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].RegionId");
                deployedApiItem.ApiId = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].ApiId");
                deployedApiItem.ApiName = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].ApiName");
                deployedApiItem.GroupId = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].GroupId");
                deployedApiItem.GroupName = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].GroupName");
                deployedApiItem.StageName = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].StageName");
                deployedApiItem.Visibility = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].Visibility");
                deployedApiItem.Description = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].Description");
                deployedApiItem.DeployedTime = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].DeployedTime");

                deployedApis.Add(deployedApiItem);
            }
            describeDeployedApisResponse.DeployedApis = deployedApis;

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

示例11: Unmarshall

        public static DescribeInstancesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeInstancesResponse describeInstancesResponse = new DescribeInstancesResponse();

            describeInstancesResponse.HttpResponse = context.HttpResponse;
            describeInstancesResponse.RequestId = context.StringValue("DescribeInstances.RequestId");

            List<DescribeInstancesResponse.Instance> instances = new List<DescribeInstancesResponse.Instance>();
            for (int i = 0; i < context.Length("DescribeInstances.Instances.Length"); i++) {
                DescribeInstancesResponse.Instance instance = new DescribeInstancesResponse.Instance();
                instance.InstanceId = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceId");
                instance.InstanceType = context.EnumValue<DescribeInstancesResponse.Instance.InstanceTypeEnum>("DescribeInstances.Instances["+ i +"].InstanceType");
                instance.PackageId = context.EnumValue<DescribeInstancesResponse.Instance.PackageIdEnum>("DescribeInstances.Instances["+ i +"].PackageId");
                instance.Status = context.EnumValue<DescribeInstancesResponse.Instance.StatusEnum>("DescribeInstances.Instances["+ i +"].Status");
                instance.InnerIpAddress = context.StringValue("DescribeInstances.Instances["+ i +"].InnerIpAddress");
                instance.JumpserverStatus = context.EnumValue<DescribeInstancesResponse.Instance.JumpserverStatusEnum>("DescribeInstances.Instances["+ i +"].JumpserverStatus");
                instance.JumpserverInnerIpAddress = context.StringValue("DescribeInstances.Instances["+ i +"].JumpserverInnerIpAddress");
                instance.JumpServerPublicIpAddress = context.StringValue("DescribeInstances.Instances["+ i +"].JumpServerPublicIpAddress");

                instances.Add(instance);
            }
            describeInstancesResponse.Instances = instances;

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

示例12: Unmarshall

        public static DescibeImportsFromDatabaseResponse Unmarshall(UnmarshallerContext context)
        {
            DescibeImportsFromDatabaseResponse descibeImportsFromDatabaseResponse = new DescibeImportsFromDatabaseResponse();

            descibeImportsFromDatabaseResponse.HttpResponse = context.HttpResponse;
            descibeImportsFromDatabaseResponse.RequestId = context.StringValue("DescibeImportsFromDatabase.RequestId");
            descibeImportsFromDatabaseResponse.TotalRecordCount = context.IntegerValue("DescibeImportsFromDatabase.TotalRecordCount");
            descibeImportsFromDatabaseResponse.PageNumber = context.IntegerValue("DescibeImportsFromDatabase.PageNumber");
            descibeImportsFromDatabaseResponse.PageRecordCount = context.IntegerValue("DescibeImportsFromDatabase.PageRecordCount");

            List<DescibeImportsFromDatabaseResponse.ImportResultFromDB> items = new List<DescibeImportsFromDatabaseResponse.ImportResultFromDB>();
            for (int i = 0; i < context.Length("DescibeImportsFromDatabase.Items.Length"); i++) {
                DescibeImportsFromDatabaseResponse.ImportResultFromDB importResultFromDB = new DescibeImportsFromDatabaseResponse.ImportResultFromDB();
                importResultFromDB.ImportId = context.IntegerValue("DescibeImportsFromDatabase.Items["+ i +"].ImportId");
                importResultFromDB.ImportDataType = context.EnumValue<DescibeImportsFromDatabaseResponse.ImportResultFromDB.ImportDataTypeEnum>("DescibeImportsFromDatabase.Items["+ i +"].ImportDataType");
                importResultFromDB.ImportDataStatus = context.EnumValue<DescibeImportsFromDatabaseResponse.ImportResultFromDB.ImportDataStatusEnum>("DescibeImportsFromDatabase.Items["+ i +"].ImportDataStatus");
                importResultFromDB.ImportDataStatusDescription = context.StringValue("DescibeImportsFromDatabase.Items["+ i +"].ImportDataStatusDescription");
                importResultFromDB.IncrementalImportingTime = context.StringValue("DescibeImportsFromDatabase.Items["+ i +"].IncrementalImportingTime");

                items.Add(importResultFromDB);
            }
            descibeImportsFromDatabaseResponse.Items = items;

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

示例13: Unmarshall

        public static DescribeApisBySignatureResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApisBySignatureResponse describeApisBySignatureResponse = new DescribeApisBySignatureResponse();

            describeApisBySignatureResponse.HttpResponse = context.HttpResponse;
            describeApisBySignatureResponse.RequestId = context.StringValue("DescribeApisBySignature.RequestId");
            describeApisBySignatureResponse.TotalCount = context.IntegerValue("DescribeApisBySignature.TotalCount");
            describeApisBySignatureResponse.PageSize = context.IntegerValue("DescribeApisBySignature.PageSize");
            describeApisBySignatureResponse.PageNumber = context.IntegerValue("DescribeApisBySignature.PageNumber");

            List<DescribeApisBySignatureResponse.ApiInfo> apiInfos = new List<DescribeApisBySignatureResponse.ApiInfo>();
            for (int i = 0; i < context.Length("DescribeApisBySignature.ApiInfos.Length"); i++) {
                DescribeApisBySignatureResponse.ApiInfo apiInfo = new DescribeApisBySignatureResponse.ApiInfo();
                apiInfo.RegionId = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].RegionId");
                apiInfo.GroupId = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].GroupId");
                apiInfo.GroupName = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].GroupName");
                apiInfo.StageName = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].StageName");
                apiInfo.ApiId = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].ApiId");
                apiInfo.ApiName = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].ApiName");
                apiInfo.Description = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].Description");
                apiInfo.Visibility = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].Visibility");
                apiInfo.BoundTime = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].BoundTime");

                apiInfos.Add(apiInfo);
            }
            describeApisBySignatureResponse.ApiInfos = apiInfos;

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

示例14: Unmarshall

        public static DescribeApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApisResponse describeApisResponse = new DescribeApisResponse();

            describeApisResponse.HttpResponse = context.HttpResponse;
            describeApisResponse.RequestId = context.StringValue("DescribeApis.RequestId");
            describeApisResponse.TotalCount = context.IntegerValue("DescribeApis.TotalCount");
            describeApisResponse.PageSize = context.IntegerValue("DescribeApis.PageSize");
            describeApisResponse.PageNumber = context.IntegerValue("DescribeApis.PageNumber");

            List<DescribeApisResponse.ApiSummary> apiSummarys = new List<DescribeApisResponse.ApiSummary>();
            for (int i = 0; i < context.Length("DescribeApis.ApiSummarys.Length"); i++) {
                DescribeApisResponse.ApiSummary apiSummary = new DescribeApisResponse.ApiSummary();
                apiSummary.RegionId = context.StringValue("DescribeApis.ApiSummarys["+ i +"].RegionId");
                apiSummary.GroupId = context.StringValue("DescribeApis.ApiSummarys["+ i +"].GroupId");
                apiSummary.GroupName = context.StringValue("DescribeApis.ApiSummarys["+ i +"].GroupName");
                apiSummary.ApiId = context.StringValue("DescribeApis.ApiSummarys["+ i +"].ApiId");
                apiSummary.ApiName = context.StringValue("DescribeApis.ApiSummarys["+ i +"].ApiName");
                apiSummary.Visibility = context.StringValue("DescribeApis.ApiSummarys["+ i +"].Visibility");
                apiSummary.Description = context.StringValue("DescribeApis.ApiSummarys["+ i +"].Description");
                apiSummary.CreatedTime = context.StringValue("DescribeApis.ApiSummarys["+ i +"].CreatedTime");
                apiSummary.ModifiedTime = context.StringValue("DescribeApis.ApiSummarys["+ i +"].ModifiedTime");

                apiSummarys.Add(apiSummary);
            }
            describeApisResponse.ApiSummarys = apiSummarys;

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

示例15: Unmarshall

        public static DescribeParameterTemplatesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeParameterTemplatesResponse describeParameterTemplatesResponse = new DescribeParameterTemplatesResponse();

            describeParameterTemplatesResponse.HttpResponse = context.HttpResponse;
            describeParameterTemplatesResponse.RequestId = context.StringValue("DescribeParameterTemplates.RequestId");
            describeParameterTemplatesResponse.Engine = context.StringValue("DescribeParameterTemplates.Engine");
            describeParameterTemplatesResponse.EngineVersion = context.StringValue("DescribeParameterTemplates.EngineVersion");
            describeParameterTemplatesResponse.ParameterCount = context.StringValue("DescribeParameterTemplates.ParameterCount");

            List<DescribeParameterTemplatesResponse.TemplateRecord> parameters = new List<DescribeParameterTemplatesResponse.TemplateRecord>();
            for (int i = 0; i < context.Length("DescribeParameterTemplates.Parameters.Length"); i++) {
                DescribeParameterTemplatesResponse.TemplateRecord templateRecord = new DescribeParameterTemplatesResponse.TemplateRecord();
                templateRecord.ParameterName = context.StringValue("DescribeParameterTemplates.Parameters["+ i +"].ParameterName");
                templateRecord.ParameterValue = context.StringValue("DescribeParameterTemplates.Parameters["+ i +"].ParameterValue");
                templateRecord.ForceModify = context.StringValue("DescribeParameterTemplates.Parameters["+ i +"].ForceModify");
                templateRecord.ForceRestart = context.StringValue("DescribeParameterTemplates.Parameters["+ i +"].ForceRestart");
                templateRecord.CheckingCode = context.StringValue("DescribeParameterTemplates.Parameters["+ i +"].CheckingCode");
                templateRecord.ParameterDescription = context.StringValue("DescribeParameterTemplates.Parameters["+ i +"].ParameterDescription");

                parameters.Add(templateRecord);
            }
            describeParameterTemplatesResponse.Parameters = parameters;

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


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