public bool VerifyDevKey(string apiKey) { DevKey = new DevKeyRequest(apiKey); var isValid = TestlinkService.VerifyDevKey(DevKey); if (!typeof(bool).Equals(isValid.GetType())) { return(false); } return(true); }
public bool VerifyDevKey(string apiKey, out List <Fault> faults) { DevKey = new DevKeyRequest(apiKey); var isValid = TestlinkService.VerifyDevKey(DevKey); if (typeof(XmlRpcStruct[]).Equals(isValid.GetType())) { XmlRpcStruct[] val = (XmlRpcStruct[])isValid; faults = new List <Fault>(); foreach (var item in val) { Fault fault = item; faults.Add(fault); } return(false); } faults = null; return(true); }