Добавил для BoxAnswer toUni()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-04-02 12:57:23 +03:00
parent d723460d31
commit 5a8c7803d6
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -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;