protected XmlResponse(string xml) { _returnCode = XmlReturnCode.Success; _xml = xml == null ? null : XmlRegex.Replace(xml, " "); }
protected XmlResponse(Exception ex) { _returnCode = XmlReturnCode.Failure; _errors = new[] { MiscUtils.GetExceptionMessageTree(ex) }; }
protected XmlResponse(string xml, string[] errors) { _returnCode = errors == null || errors.Length == 0 ? XmlReturnCode.Success : XmlReturnCode.Errors; _xml = xml == null ? null : XmlRegex.Replace(xml, " "); _errors = errors; }