public final class Reply extends Object
If an update satisfies the conditionsset by the reply, then it's safe to actOn(Update).
| Modifier and Type | Field and Description |
|---|---|
Consumer<org.telegram.telegrambots.api.objects.Update> |
action |
List<Predicate<org.telegram.telegrambots.api.objects.Update>> |
conditions |
| Modifier and Type | Method and Description |
|---|---|
void |
actOn(org.telegram.telegrambots.api.objects.Update update) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isOkFor(org.telegram.telegrambots.api.objects.Update update) |
static Reply |
of(Consumer<org.telegram.telegrambots.api.objects.Update> action,
Predicate<org.telegram.telegrambots.api.objects.Update>... conditions) |
String |
toString() |
public final List<Predicate<org.telegram.telegrambots.api.objects.Update>> conditions
public final Consumer<org.telegram.telegrambots.api.objects.Update> action
@SafeVarargs public static Reply of(Consumer<org.telegram.telegrambots.api.objects.Update> action, Predicate<org.telegram.telegrambots.api.objects.Update>... conditions)
public boolean isOkFor(org.telegram.telegrambots.api.objects.Update update)
public void actOn(org.telegram.telegrambots.api.objects.Update update)
Copyright © 2017. All rights reserved.