Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created March 29, 2020 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-nash-rs/54501a1ce498ac487453931cd609ce50 to your computer and use it in GitHub Desktop.
Save john-nash-rs/54501a1ce498ac487453931cd609ce50 to your computer and use it in GitHub Desktop.
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