public int Checkin(IStation station, double duration) { if (durationValid(this.CheckInTime, duration)) { double hours = requestTimeFrame(this.CheckInTime, duration); int confCode = ProcessTransaction(createHoursArray(hours), TransactionType.SALE); this.appointmentStation = station; appointmentStation.open_door(); return(confCode); } return((int)ErrorCode.DUR_INV); }