Skip to content

Commit 221e07e

Browse files
Create App.java
1 parent 8bd3175 commit 221e07e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

localization/zh/chain/App.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)