Class ProximityAlertTriggered
java.lang.Object
io.micronaut.chatbots.telegram.api.ProximityAlertTriggered
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 Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Integer
@NonNull User
@NonNull User
void
setDistance
(@NonNull Integer distance) void
setTraveler
(@NonNull User traveler) void
setWatcher
(@NonNull User watcher)
-
Constructor Details
-
ProximityAlertTriggered
public ProximityAlertTriggered()
-
-
Method Details
-
getTraveler
- Returns:
- User that triggered the alert.
-
setTraveler
- Parameters:
traveler
- User that triggered the alert.
-
getWatcher
- Returns:
- User that set the alert.
-
setWatcher
- Parameters:
watcher
- User that set the alert.
-
getDistance
- Returns:
- The distance between the users.
-
setDistance
- Parameters:
distance
- The distance between the users.
-