LocationMessage

data class LocationMessage(val lat: Double, val long: Double, val address: String? = null, val name: String? = null) : MessageBody

Represents a location message.

Throws

if the latitude or longitude is out of range.

Constructors

Link copied to clipboard
constructor(lat: Double, long: Double, address: String? = null, name: String? = null)

Properties

Link copied to clipboard
val address: String? = null

The address of the location (optional).

Link copied to clipboard
open override val elementText: ElementText

The text of the message body

Link copied to clipboard
open override val elementType: ElementType

The type of the body element such as text

Link copied to clipboard
val lat: Double

The latitude of the location. Must be a valid latitude (-90.0 to 90.0).

Link copied to clipboard

The longitude of the location. Must be a valid longitude (-180.0 to 180.o).

Link copied to clipboard
val name: String? = null

The name of the location (optional).

Link copied to clipboard

The rich-media payload