Aliyun.Acs.Ecs.Transform.V20140526.DescribeVRoutersResponseUnmarshaller.Unmarshall C# (CSharp) Метод

Unmarshall() публичный статический Метод

public static Unmarshall ( UnmarshallerContext context ) : DescribeVRoutersResponse
context UnmarshallerContext
Результат Aliyun.Acs.Ecs.Model.V20140526.DescribeVRoutersResponse
        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;
        }
DescribeVRoutersResponseUnmarshaller