package org.ovirt.engine.core.vdsbroker.vdsbroker;
import java.util.Map;
import org.ovirt.engine.core.vdsbroker.irsbroker.*;
import org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct;
//-----------------------------------------------------
//
//-----------------------------------------------------
public final class ServerConnectionListReturnForXmlRpc extends StatusReturnForXmlRpc {
private static final String STATUS_LIST = "serverList";
// We are ignoring missing fields after the status, because on failure it is
// not sent.
// [XmlRpcMissingMapping(MappingAction.Ignore), XmlRpcMember("serverList")]
public XmlRpcStruct[] mConnectionList;
@SuppressWarnings("unchecked")
public ServerConnectionListReturnForXmlRpc(Map<String, Object> innerMap) {
super(innerMap);
Object[] temp = (Object[]) innerMap.get(STATUS_LIST);
if (temp != null) {
mConnectionList = new XmlRpcStruct[temp.length];
for (int i = 0; i < temp.length; i++) {
mConnectionList[i] = new XmlRpcStruct((Map<String, Object>) temp[i]);
}
}
}
}