BAEL-8824 Align module names, folder names and artifact id

- Folder name changes
This commit is contained in:
Dhawal Kapil
2018-09-04 20:23:31 +05:30
parent 3130251d3a
commit 6ea3e51f19
70 changed files with 57 additions and 41 deletions

View File

@@ -0,0 +1,17 @@
package com.baeldung.api;
import java.io.Serializable;
import static java.lang.String.format;
public class Booking implements Serializable {
private String bookingCode;
@Override public String toString() {
return format("Ride confirmed: code '%s'.", bookingCode);
}
public Booking(String bookingCode) {
this.bookingCode = bookingCode;
}
}

View File

@@ -0,0 +1,7 @@
package com.baeldung.api;
public class BookingException extends Exception {
public BookingException(String message) {
super(message);
}
}

View File

@@ -0,0 +1,5 @@
package com.baeldung.api;
public interface CabBookingService {
Booking bookRide(String pickUpLocation) throws BookingException;
}