class Hamilton::Types::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:

types/proximity_alert_triggered.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def distance : Int32 #

The distance between the users.


def distance=(distance : Int32) #

The distance between the users.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def traveler : Hamilton::Types::User #

User that triggered the alert.


def traveler=(traveler : Hamilton::Types::User) #

User that triggered the alert.


def watcher : Hamilton::Types::User #

User that set the alert.


def watcher=(watcher : Hamilton::Types::User) #

User that set the alert.