Booking confirmation and e-mail service added. Some bugs to be solved.
[RRRRHHHH_Code] / ruralHouses / src / domain / Booking.java
index 40638c7..51546c3 100644 (file)
@@ -10,7 +10,6 @@ public class Booking implements Serializable {
        private Date bookingDate;
        private Client client;
        private Offer offer;
-       private boolean isAccepted;
        
        
        public Booking() {
@@ -24,7 +23,6 @@ public class Booking implements Serializable {
                //Booking date is assigned to actual date
                this.bookingDate= new java.util.Date(System.currentTimeMillis());
                this.isPaid=false;
-               this.isAccepted=false;
        }
        
        public void imprimete(){
@@ -32,8 +30,7 @@ public class Booking implements Serializable {
                System.out.println(isPaid);
                System.out.println(bookingDate);
                System.out.println(client.toString());
-               System.out.println(offer);              
-               System.out.println(this.isAccepted);    
+               System.out.println(offer);      
        }
 
        public int getBookNumber() {
@@ -72,9 +69,7 @@ public class Booking implements Serializable {
                return isPaid;
        }
        
-       public boolean isAccepted(){
-               return this.isAccepted;
-       }
+
 
        public Client getClient() {
                return client;