From 7ae9121e2d28be3377825b47f85ca7a1eac51344 Mon Sep 17 00:00:00 2001 From: JeremyTubongbanua Date: Thu, 20 Oct 2022 18:17:26 -0400 Subject: [PATCH] feat: NotificationEnums class --- .../org/atsign/common/NotificationEnums.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 at_client/src/main/java/org/atsign/common/NotificationEnums.java diff --git a/at_client/src/main/java/org/atsign/common/NotificationEnums.java b/at_client/src/main/java/org/atsign/common/NotificationEnums.java new file mode 100644 index 00000000..f46d6019 --- /dev/null +++ b/at_client/src/main/java/org/atsign/common/NotificationEnums.java @@ -0,0 +1,38 @@ +package org.atsign.common; + +public class NotificationEnums { + + public enum Operation { + UPDATE, DELETE, APPEND, REMOVE,; + + public String toString() { + return this.name().toLowerCase(); + } + + } + + public enum Priority { + LOW, MEDIUM, HIGH,; + + public String toString() { + return this.name().toLowerCase(); + } + + } + + public enum Strategy { + ALL, LATEST,; + + public String toString() { + return this.name().toLowerCase(); + } + } + + public enum MessageType { + KEY, TEXT,; + + public String toString() { + return "MessageType." + this.name().toLowerCase(); + } + } +}