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

GetBuildsForTestPlan() public method

get a list of all builds for a testplan
public GetBuildsForTestPlan ( int testplanid ) : List
testplanid int the id of the testplan
return List
        public List<Build> GetBuildsForTestPlan(int testplanid)
        {

            stateIsValid();
            object response = proxy.getBuildsForTestPlan(devkey, testplanid);
            handleErrorMessage(response);
            List<Build> retval = new List<Build>();
            if ((response is string) && ((string)response == string.Empty))
                // equals null return
                return retval;
            object[] oList = response as object[];

            retval.AddRange(from XmlRpcStruct data in oList select new Build(data));
            /*
            foreach (XmlRpcStruct data in oList)
            {

                Build b = new Build(data);
                retval.Add(b);
            }
            */

            return retval;
        }