Created
March 29, 2020 14:02
-
-
Save john-nash-rs/54501a1ce498ac487453931cd609ce50 to your computer and use it in GitHub Desktop.
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