Campsite

data class Campsite(val campsiteId: String = "", val ownerId: String = "", val campsiteName: String = "", val description: String = "", val address: String = "", val latitude: Double = 0.0, val longitude: Double = 0.0, val maxOccupancy: Int = 1, val rulesPolicies: String = "", val amenities: List<String> = emptyList(), val tags: List<String> = emptyList(), val imageIds: List<String> = emptyList(), val rating: Float = 0.0f, val ratingCount: Int = 0, val availability: AvailabilitySchedule = AvailabilitySchedule(), var active: Boolean = true)

Represents a campsite listing.

Constructors

Link copied to clipboard
constructor(campsiteId: String = "", ownerId: String = "", campsiteName: String = "", description: String = "", address: String = "", latitude: Double = 0.0, longitude: Double = 0.0, maxOccupancy: Int = 1, rulesPolicies: String = "", amenities: List<String> = emptyList(), tags: List<String> = emptyList(), imageIds: List<String> = emptyList(), rating: Float = 0.0f, ratingCount: Int = 0, availability: AvailabilitySchedule = AvailabilitySchedule(), active: Boolean = true)

Properties

Link copied to clipboard

Whether the campsite listing is active.

Link copied to clipboard

The campsite's address.

Link copied to clipboard

Amenities available at the campsite.

Link copied to clipboard

The campsite's availability schedule.

Link copied to clipboard

The unique ID of the campsite.

Link copied to clipboard

The name of the campsite.

Link copied to clipboard

A description of the campsite.

Link copied to clipboard

IDs of images associated with the campsite.

Link copied to clipboard

The campsite's latitude.

Link copied to clipboard

The campsite's longitude.

Link copied to clipboard

The maximum number of guests allowed.

Link copied to clipboard

The device ID of the campsite owner.

Link copied to clipboard

The mean rating of the campsite.

Link copied to clipboard

The number of ratings of the campsite.

Link copied to clipboard

Rules and policies for the campsite.

Link copied to clipboard

Tags for the campsite.