private static ErrorType CreateErrorType(OTA_ERR errCode, OTA_EWT errType, string errMsg) { ErrorType error = new ErrorType() { Type = errType.ToString(), Code = errCode.ToString(), Value = errMsg }; return(error); }
public ReservationError(OTA_EWT ewtOTA, OTA_ERR errOTA, string errText) { err = errOTA; ewt = ewtOTA; // // Since this text is going into an XML node, invalid chars must be escaped with XML entities. // string xmlText = errText ?? errOTA.ToString().Replace("_", " "); errorText = xmlText.Replace("&", "&").Replace("<", "<").Replace(">", ">"); }