Добавил метод в билдер BoxAnswer
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-03-26 21:59:59 +03:00
parent cd01b078a9
commit 6f7b67bd79
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
2 changed files with 14 additions and 0 deletions

View File

@ -174,6 +174,13 @@ public class BoxAnswer {
return this;
}
public Builder payload(ContextKey<Boolean> key) {
if (checkNotNull(key)) {
payload.put(key.getValue(), true);
}
return this;
}
public BoxAnswer build() {
return new BoxAnswer(this);
}

View File

@ -198,6 +198,13 @@ public class BoxAnswer {
return this;
}
public Builder payload(ContextKey<Boolean> key) {
if (checkNotNull(key)) {
payload.put(key, true);
}
return this;
}
public BoxAnswer build() {
return new BoxAnswer(this);
}