Aliyun.Acs.Slb.Transform.V20140515.SetVServerGroupAttributeResponseUnmarshaller.Unmarshall C# (CSharp) 메소드

Unmarshall() 공개 정적인 메소드

public static Unmarshall ( UnmarshallerContext context ) : SetVServerGroupAttributeResponse
context UnmarshallerContext
리턴 SetVServerGroupAttributeResponse
        public static SetVServerGroupAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            SetVServerGroupAttributeResponse setVServerGroupAttributeResponse = new SetVServerGroupAttributeResponse();

            setVServerGroupAttributeResponse.HttpResponse = context.HttpResponse;
            setVServerGroupAttributeResponse.RequestId = context.StringValue("SetVServerGroupAttribute.RequestId");
            setVServerGroupAttributeResponse.VServerGroupId = context.StringValue("SetVServerGroupAttribute.VServerGroupId");
            setVServerGroupAttributeResponse.VServerGroupName = context.StringValue("SetVServerGroupAttribute.VServerGroupName");

            List<SetVServerGroupAttributeResponse.BackendServer> backendServers = new List<SetVServerGroupAttributeResponse.BackendServer>();
            for (int i = 0; i < context.Length("SetVServerGroupAttribute.BackendServers.Length"); i++) {
                SetVServerGroupAttributeResponse.BackendServer backendServer = new SetVServerGroupAttributeResponse.BackendServer();
                backendServer.ServerId = context.StringValue("SetVServerGroupAttribute.BackendServers["+ i +"].ServerId");
                backendServer.Port = context.IntegerValue("SetVServerGroupAttribute.BackendServers["+ i +"].Port");
                backendServer.Weight = context.IntegerValue("SetVServerGroupAttribute.BackendServers["+ i +"].Weight");

                backendServers.Add(backendServer);
            }
            setVServerGroupAttributeResponse.BackendServers = backendServers;

            return setVServerGroupAttributeResponse;
        }
SetVServerGroupAttributeResponseUnmarshaller