Campsite Owner
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
device Id
The user's device ID.
name
The user's name.
email
The user's email address.
phone
The user's phone number.
profile Picture Image Id
The profile image ID.
notifications Enabled
Whether notifications are enabled.
Constructors
Properties
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.