CampsiteOwner

class CampsiteOwner(deviceId: String = "", name: String = "", email: String = "", phone: String = "", profilePictureImageId: String = "", notificationsEnabled: Boolean = true, val ownedCampsiteIds: List<String> = emptyList(), val lotteryIds: List<String> = emptyList()) : User

Owners are users who create campsite listings and runs lotteries and waitlist for them.

Parameters

deviceId

The user's device ID.

name

The user's name.

email

The user's email address.

phone

The user's phone number.

profilePictureImageId

The profile image ID.

notificationsEnabled

Whether notifications are enabled.

Constructors

Link copied to clipboard
constructor(deviceId: String = "", name: String = "", email: String = "", phone: String = "", profilePictureImageId: String = "", notificationsEnabled: Boolean = true, ownedCampsiteIds: List<String> = emptyList(), lotteryIds: List<String> = emptyList())

Properties

Link copied to clipboard

The unique ID of the user's device.

Link copied to clipboard

The user's email address, not visible to others.

Link copied to clipboard

IDs of created lotteries.

Link copied to clipboard

The user's real name, may be visible to other users.

Link copied to clipboard

Whether the user wants to receive notifications.

Link copied to clipboard

IDs of owned campsites.

Link copied to clipboard

The user's phone number, not visible to others.

Link copied to clipboard

The user's profile picture imageId.

Link copied to clipboard

The user's assigned role in the application.

Functions

Link copied to clipboard

Turns notifications on or off for the user.

Link copied to clipboard
fun updateProfile(name: String = this.name, email: String = this.email, phone: String = this.phone, imageId: String = this.profilePictureImageId)

Updates the user's profile details.