//populates the scan private void CreateScan() { scan = new Scan(); scan.CardNumber = cardNumber; scan.ScanDateTime = scanDateTime; scan.ScannerNumber = scannerNumber; scan.DoorStatus = DoorStatus; }
public Scanner(string card, string scanNumber, string status) { //the constructor populates most of the //values needed for the scan cardNumber = card; scannerNumber = scanNumber; scanDateTime = DateTime.Now; doorStatus = status; scan = null; //calls CreateScan and GetValidation methods CreateScan(); GetValidation(); }
public ScanValidator(Scan s) { scan = s; try { //sets the permission based on validate scan permission = ValidateScan(); } catch (Exception ex) { throw ex; } //calls the method to write the entry to a log LogEntry(); }