internal TestProject(XmlRpcStruct data)
{
id = toInt(data, "id");
notes = (string)data["notes"];
color = (string)data["color"];
active = toInt(data, "active") == 1;
//changed option encoding sinc V 1.9
XmlRpcStruct opt = data["opt"] as XmlRpcStruct;
option_reqs = (int)opt["requirementsEnabled"] == 1;
option_priority = (int)opt["testPriorityEnabled"] == 1;
option_automation = (int)opt["automationEnabled"] == 1;
option_inventory = (int)opt["inventoryEnabled"] == 1;
prefix = (string)data["prefix"];
tc_counter = toInt(data, "tc_counter");
name = (string)data["name"];
}
}