Reservation Repository
class ReservationRepository
Handles the data in the Firestore database for the Reservation class.
Functions
Link copied to clipboard
Adds a new reservation to the Firestore database.
Link copied to clipboard
Deletes a reservation from the Firestore database.
Link copied to clipboard
Gets a Reservation object from the database given its reservationId.
Link copied to clipboard
Gets all the Reservation objects for a specific Campsite given its campsiteId.
Link copied to clipboard
Gets all the Reservation objects for a specific Entrant given its entrantId.
Link copied to clipboard
Saves a reservation to Firestore, creating it if absent.