LocationMessage

@Serializable
data class LocationMessage(    val from: String?,     val to: String?,     val latitude: String?,     val longitude: String?,     @BsonId val id: String = ObjectId().toString())

Represents a location-based message.

Parameters

from

the sender of the message.

to

the recipient of the message.

latitude

the latitude coordinate of the location.

longitude

the longitude coordinate of the location.

id

the unique identifier of the message.

Constructors

Link copied to clipboard
constructor(    from: String?,     to: String?,     latitude: String?,     longitude: String?,     @BsonId id: String = ObjectId().toString())

Properties

Link copied to clipboard
val from: String?
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val to: String?