We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd3175 commit 221e07eCopy full SHA for 221e07e
localization/zh/chain/App.java
@@ -0,0 +1,25 @@
1
+@Getter
2
+public class Request {
3
+
4
+ private final RequestType requestType;
5
+ private final String requestDescription;
6
+ private boolean handled;
7
8
+ public Request(final RequestType requestType, final String requestDescription) {
9
+ this.requestType = Objects.requireNonNull(requestType);
10
+ this.requestDescription = Objects.requireNonNull(requestDescription);
11
+ }
12
13
+ public void markHandled() {
14
+ this.handled = true;
15
16
17
+ @Override
18
+ public String toString() {
19
+ return getRequestDescription();
20
21
+}
22
23
+public enum RequestType {
24
+ DEFEND_CASTLE, TORTURE_PRISONER, COLLECT_TAX
25
0 commit comments