internal static ParseConfigs FormatParse(DataTable dbReturn) { try { var reformat = new ParseConfigs { DetectorType = Convert.ToString(dbReturn.Rows[0].ItemArray[1]), Detector = Convert.ToString(dbReturn.Rows[0].ItemArray[2]), Vendor = Convert.ToString(dbReturn.Rows[0].ItemArray[3]), Server = Convert.ToString(dbReturn.Rows[0].ItemArray[4]), Folder = Convert.ToString(dbReturn.Rows[0].ItemArray[5]), FolderTest = Convert.ToString(dbReturn.Rows[0].ItemArray[6]), File = Convert.ToString(dbReturn.Rows[0].ItemArray[7]), EmailFrom = Convert.ToString(dbReturn.Rows[0].ItemArray[8]), Lastevent = Convert.ToString(dbReturn.Rows[0].ItemArray[9]), UserID = Convert.ToString(dbReturn.Rows[0].ItemArray[10]), Pwd = Convert.ToString(dbReturn.Rows[0].ItemArray[11]), Acek = Convert.ToString(dbReturn.Rows[0].ItemArray[12]), DB = Convert.ToString(dbReturn.Rows[0].ItemArray[13]), ConnString = Convert.ToString(dbReturn.Rows[0].ItemArray[14]), Query = Convert.ToString(dbReturn.Rows[0].ItemArray[15]), Query2 = Convert.ToString(dbReturn.Rows[0].ItemArray[16]), Query3 = Convert.ToString(dbReturn.Rows[0].ItemArray[17]), APIKey = Convert.ToString(dbReturn.Rows[0].ItemArray[18]) }; return(reformat); } catch (Exception e) { Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to format datatable return." + e); } return(null); }
internal static ParseConfigs FormatParse(DataTable dbReturn) { try { var reformat = new ParseConfigs { DetectorType = Convert.ToString(dbReturn.Rows[0].ItemArray[1]), Detector = Convert.ToString(dbReturn.Rows[0].ItemArray[2]), Vendor = Convert.ToString(dbReturn.Rows[0].ItemArray[3]), Server = Convert.ToString(dbReturn.Rows[0].ItemArray[4]), Folder = Convert.ToString(dbReturn.Rows[0].ItemArray[5]), FolderTest = Convert.ToString(dbReturn.Rows[0].ItemArray[6]), File = Convert.ToString(dbReturn.Rows[0].ItemArray[7]), EmailFrom = Convert.ToString(dbReturn.Rows[0].ItemArray[8]), Lastevent = Convert.ToString(dbReturn.Rows[0].ItemArray[9]), UserID = Convert.ToString(dbReturn.Rows[0].ItemArray[10]), Pwd = Convert.ToString(dbReturn.Rows[0].ItemArray[11]), Acek = Convert.ToString(dbReturn.Rows[0].ItemArray[12]), DB = Convert.ToString(dbReturn.Rows[0].ItemArray[13]), ConnString = Convert.ToString(dbReturn.Rows[0].ItemArray[14]), Query = Convert.ToString(dbReturn.Rows[0].ItemArray[15]), Query2 = Convert.ToString(dbReturn.Rows[0].ItemArray[16]), Query3 = Convert.ToString(dbReturn.Rows[0].ItemArray[17]), APIKey = Convert.ToString(dbReturn.Rows[0].ItemArray[18]) }; return reformat; } catch (Exception e) { Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to format datatable return." + e); } return null; }
internal static ParseConfigs FormatParse(DataTable dbReturn) { try { var reformat = new ParseConfigs { PrimeKey = Convert.ToInt16(dbReturn.Rows[0].ItemArray[0]), ApiCall = Convert.ToString(dbReturn.Rows[0].ItemArray[1]), ApiBaseUrl = Convert.ToString(dbReturn.Rows[0].ItemArray[2]), ApiFuncCall = Convert.ToString(dbReturn.Rows[0].ItemArray[3]), ApiQueryString = Convert.ToString(dbReturn.Rows[0].ItemArray[4]), ApiKey = Convert.ToString(dbReturn.Rows[0].ItemArray[5]) }; return(reformat); } catch (Exception e) { Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to format datatable return." + e); } return(null); }
internal static ParseConfigs FormatParse(DataTable dbReturn) { try { var reformat = new ParseConfigs { PrimeKey = Convert.ToInt16(dbReturn.Rows[0].ItemArray[0]), ApiCall = Convert.ToString(dbReturn.Rows[0].ItemArray[1]), ApiBaseUrl = Convert.ToString(dbReturn.Rows[0].ItemArray[2]), ApiFuncCall = Convert.ToString(dbReturn.Rows[0].ItemArray[3]), ApiQueryString = Convert.ToString(dbReturn.Rows[0].ItemArray[4]), ApiKey = Convert.ToString(dbReturn.Rows[0].ItemArray[5]) }; return reformat; } catch (Exception e) { Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to format datatable return." + e); } return null; }