public static SetVServerGroupAttributeResponse Unmarshall(UnmarshallerContext context) { SetVServerGroupAttributeResponse setVServerGroupAttributeResponse = new SetVServerGroupAttributeResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("SetVServerGroupAttribute.RequestId"), VServerGroupId = context.StringValue("SetVServerGroupAttribute.VServerGroupId"), 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() { ServerId = context.StringValue($"SetVServerGroupAttribute.BackendServers[{i}].ServerId"), Port = context.IntegerValue($"SetVServerGroupAttribute.BackendServers[{i}].Port"), Weight = context.IntegerValue($"SetVServerGroupAttribute.BackendServers[{i}].Weight") }; backendServers.Add(backendServer); } setVServerGroupAttributeResponse.BackendServers = backendServers; return(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; }