Added special server messages enum

This commit is contained in:
Marcin Kostrzewski 2020-10-28 18:31:56 +01:00
parent f296770a21
commit 90c705bb98

View 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;
}
}