Skip to content

class Tourmaline::ProximityAlertTriggered
inherits Reference #

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.

Included modules

JSON::Serializable

Constructors#

.new(traveler, watcher, distance) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#distance : Int32 | Int64 #

The distance between the users

View source

#distance=(distance : Int32 | Int64) #

The distance between the users

View source

#traveler : Tourmaline::User #

User that triggered the alert

View source

#traveler=(traveler : Tourmaline::User) #

User that triggered the alert

View source

#watcher : Tourmaline::User #

User that set the alert

View source

#watcher=(watcher : Tourmaline::User) #

User that set the alert

View source