public List<TestPlatform> GetTestPlanPlatforms(int testplanid)
{
List<TestPlatform> result = new List<TestPlatform>();
stateIsValid();
object o = proxy.getTestPlanPlatforms(devkey, testplanid);
if (handleErrorMessage(o, 3041))
// 3041 means no platforms are assigned for this testplan
return result;
// return an empty list
if (o is object[]) {
object[] responseList = o as object[];
foreach (XmlRpcStruct item in responseList) {
TestPlatform id = new TestPlatform(item);
result.Add(id);
}
}
return result;
}