From 90c705bb987eac1aa6601d6e23e3682bc3bf06dd Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Wed, 28 Oct 2020 18:31:56 +0100 Subject: [PATCH] Added special server messages enum --- src/main/java/Main/Messages.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/Main/Messages.java diff --git a/src/main/java/Main/Messages.java b/src/main/java/Main/Messages.java new file mode 100644 index 0000000..991f5f9 --- /dev/null +++ b/src/main/java/Main/Messages.java @@ -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; + } +}