Added special server messages enum
This commit is contained in:
parent
f296770a21
commit
90c705bb98
20
src/main/java/Main/Messages.java
Normal file
20
src/main/java/Main/Messages.java
Normal file
@ -0,0 +1,20 @@
|
||||
package Main;
|
||||
|
||||
public enum Messages {
|
||||
IAMBOB("I am bob"),
|
||||
IAMALICE("I am alice"),
|
||||
A("a"),
|
||||
B("b"),
|
||||
HASH("hash"),
|
||||
MESSAGE("message");
|
||||
|
||||
private String text;
|
||||
|
||||
Messages(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user