/// <summary> /// Returns an array of the data which is applicable to an Ontario transaction /// </summary> /// <returns></returns> public override string[] TransactionData() { return(new string[] { Date, Time, BoxNumber.ToString(), DoorOpened.ToString(), AccessCode, BikeType.ToString(), ReturningKey.ToString() }); }
/// <summary> /// Returns an array of the data which is applicable to an Nebraska transaction /// </summary> /// <returns></returns> public override string[] TransactionData() { return(new string[] { Date, Time, BoxNumber.ToString(), DoorOpened.ToString(), AccessCode, CardNumber, IdentificationType, ReturningKey.ToString(), CarDamaged.ToString(), CarCleaned.ToString(), CarRefueled.ToString(), TransactionNumber }); }
/// <summary> /// CSV_Entry - generate a comma separated data entry for a transaction /// </summary> /// <returns></returns> public override string CSV_Entry() { try { return(String.Format("{0},{1},{2:d},{3},{4},{5},{6}", Date, Time, BoxNumber, DoorOpened.ToString(), AccessCode, BikeType.ToString(), ReturningKey.ToString())); } catch (Exception ex) { Program.logEvent("error creating csv entry" + ex.Message); return("transaction recording error"); } }