Reservation

data class Reservation(val reservationId: String = "", val campsiteId: String = "", val entrantId: String = "", val ownerId: String = "", val startDate: String = "", val endDate: String = "", val guests: Int = 1, val status: ReservationStatus = ReservationStatus.PENDING, val ruleConfirmed: Boolean = false)

Represents a reservation made by an entrant for a campsite.

Constructors

Link copied to clipboard
constructor(reservationId: String = "", campsiteId: String = "", entrantId: String = "", ownerId: String = "", startDate: String = "", endDate: String = "", guests: Int = 1, status: ReservationStatus = ReservationStatus.PENDING, ruleConfirmed: Boolean = false)

Properties

Link copied to clipboard

The ID of the reserved campsite.

Link copied to clipboard

The end date of the reservation.

Link copied to clipboard

The device ID of the entrant who made the reservation.

Link copied to clipboard
val guests: Int

The number of guests in the reservation.

Link copied to clipboard

The device ID of the campsite owner.

Link copied to clipboard

The unique ID of the reservation.

Link copied to clipboard

true if the entrant has accepted the campsite rules, false otherwise.

Link copied to clipboard

The start date of the reservation.

Link copied to clipboard

The current status of the reservation.

Functions

Link copied to clipboard

Checks whether the reservation is pending or confirmed.