Добавил метод в билдер BoxAnswer
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
cd01b078a9
commit
6f7b67bd79
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user