From 6f7b67bd792952e2d71e94855e232f87c9e765e9 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 26 Mar 2023 21:59:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B2=20=D0=B1=D0=B8=D0=BB?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=20BoxAnswer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/struchkov/godfather/quarkus/domain/BoxAnswer.java | 7 +++++++ .../dev/struchkov/godfather/simple/domain/BoxAnswer.java | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java b/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java index efbcc65..abd064a 100644 --- a/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java +++ b/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java @@ -174,6 +174,13 @@ public class BoxAnswer { return this; } + public Builder payload(ContextKey key) { + if (checkNotNull(key)) { + payload.put(key.getValue(), true); + } + return this; + } + public BoxAnswer build() { return new BoxAnswer(this); } diff --git a/bot-domain/bot-domain-simple/src/main/java/dev/struchkov/godfather/simple/domain/BoxAnswer.java b/bot-domain/bot-domain-simple/src/main/java/dev/struchkov/godfather/simple/domain/BoxAnswer.java index 0c1d4c6..8e07ea7 100644 --- a/bot-domain/bot-domain-simple/src/main/java/dev/struchkov/godfather/simple/domain/BoxAnswer.java +++ b/bot-domain/bot-domain-simple/src/main/java/dev/struchkov/godfather/simple/domain/BoxAnswer.java @@ -198,6 +198,13 @@ public class BoxAnswer { return this; } + public Builder payload(ContextKey key) { + if (checkNotNull(key)) { + payload.put(key, true); + } + return this; + } + public BoxAnswer build() { return new BoxAnswer(this); }