Class ProximityAlertTriggered

java.lang.Object
io.micronaut.chatbots.telegram.api.ProximityAlertTriggered

public class ProximityAlertTriggered extends Object
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. ProximityAlterTrigger
  • Constructor Details

    • ProximityAlertTriggered

      public ProximityAlertTriggered()
  • Method Details

    • getTraveler

      @NonNull public @NonNull User getTraveler()
      Returns:
      User that triggered the alert.
    • setTraveler

      public void setTraveler(@NonNull @NonNull User traveler)
      Parameters:
      traveler - User that triggered the alert.
    • getWatcher

      @NonNull public @NonNull User getWatcher()
      Returns:
      User that set the alert.
    • setWatcher

      public void setWatcher(@NonNull @NonNull User watcher)
      Parameters:
      watcher - User that set the alert.
    • getDistance

      @NonNull public @NonNull Integer getDistance()
      Returns:
      The distance between the users.
    • setDistance

      public void setDistance(@NonNull @NonNull Integer distance)
      Parameters:
      distance - The distance between the users.