Meyn.TestLink.TestProject.TestProject C# (CSharp) Method

TestProject() private method

constructor used by XMLRPC interface on decoding the function return
private TestProject ( CookComputing.XmlRpc.XmlRpcStruct data ) : System
data CookComputing.XmlRpc.XmlRpcStruct data returned by Testlink
return System
        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"];
        }
    }
TestProject