This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IStorageService { | |
Boolean saveRider(Rider rider); | |
Boolean saveDriver(Driver driver); | |
Boolean saveVehicle(Vehicle vehicle); | |
Boolean updateLocation(Vehicle vehicle); | |
Boolean book(Booking booking); | |
Vehicle find(Double lat, Double lon, Double maxDistance); | |
List<Booking> rideHistory(String riderUserId); | |
Boolean endTrip(Long timeStamp, String bookingId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment