LocationMessage
constructor(from: String?, to: String?, latitude: String?, longitude: String?, @BsonId id: String = ObjectId().toString())
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.