class Tourmaline::ProximityAlertTriggered

Overview

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

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(traveler : Tourmaline::User, watcher : Tourmaline::User, distance : Int32 | Int64) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def distance : Int32 | Int64 #

The distance between the users


[View source]
def distance=(distance : Int32 | Int64) #

The distance between the users


[View source]
def traveler : Tourmaline::User #

User that triggered the alert


[View source]
def traveler=(traveler : Tourmaline::User) #

User that triggered the alert


[View source]
def watcher : Tourmaline::User #

User that set the alert


[View source]
def watcher=(watcher : Tourmaline::User) #

User that set the alert


[View source]