Campsite Repository
Manages campsite storage, retrieval, and filtering in Firestore.
Parameters
enable Listener
Whether to listen for live database updates.
Properties
Functions
Link copied to clipboard
Adds a new campsite to the Firestore database.
Link copied to clipboard
Clears all applied campsite filters and resets the filtering state.
Link copied to clipboard
Deletes a campsite from the Firestore database.
Link copied to clipboard
suspend fun filterCampsites(startDate: Timestamp?, endDate: Timestamp?, location: String, minGuests: Int, maxGuests: Int, minRating: Double?)
Filters campsites based on dates, location, guest capacity, and rating.
Link copied to clipboard
Gets all Campsite of a specific CampsiteOwner.
Link copied to clipboard
Overwrites an existing campsite in the Firestore database with updated data.