Добавил для BoxAnswer toUni()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d723460d31
commit
5a8c7803d6
@ -6,6 +6,7 @@ import dev.struchkov.godfather.main.domain.jackson.TelegramPayloadDeserializer;
|
|||||||
import dev.struchkov.godfather.main.domain.jackson.TelegramPayloadSerializer;
|
import dev.struchkov.godfather.main.domain.jackson.TelegramPayloadSerializer;
|
||||||
import dev.struchkov.godfather.main.domain.keyboard.KeyBoard;
|
import dev.struchkov.godfather.main.domain.keyboard.KeyBoard;
|
||||||
import dev.struchkov.haiti.utils.container.ContextKey;
|
import dev.struchkov.haiti.utils.container.ContextKey;
|
||||||
|
import io.smallrye.mutiny.Uni;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
@ -136,6 +137,10 @@ public class BoxAnswer {
|
|||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Uni<BoxAnswer> toUni() {
|
||||||
|
return Uni.createFrom().item(this);
|
||||||
|
}
|
||||||
|
|
||||||
public static final class Builder {
|
public static final class Builder {
|
||||||
|
|
||||||
private String message;
|
private String message;
|
||||||
|
Loading…
Reference in New Issue
Block a user