Example #1
0
 public Booking(int bkid, Person onNameOf, int flid, int clid, DateTime dt, int nop, String cl, double tp)
 {
     bookingID = bkid;
     this.onNameOf = onNameOf;
     flightID = flid;
     clientID = clid;
     bookingDate = dt;
     numOfPersons = nop;
     classs = cl;
     totalPrice = tp;
 }
 public Booking getBooking(int flightID, int bookingID)
 {
     Person p = new Person("Piet", "Pieters", 1, "*****@*****.**", "84823948753");
     return new Booking(1, p, 1, 1, DateTime.Now, 4, "Economy", 360);
 }
 public String bookFlight(int flightID, Person onNameOf, int numberOfPersons, String Class)
 {
     return "1";
 }