From 0f891e466d0f3263f1efea70ead61c5e2a717db8 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 13 Jun 2021 01:58:29 +0100 Subject: [PATCH] Add Enum for User Actions on Waifus Reduces the chance of user error to near 0% as they are forced to use this enum --- .../java/me/goudham/util/WaifuListType.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/main/java/me/goudham/util/WaifuListType.java diff --git a/src/main/java/me/goudham/util/WaifuListType.java b/src/main/java/me/goudham/util/WaifuListType.java new file mode 100644 index 0000000..6758677 --- /dev/null +++ b/src/main/java/me/goudham/util/WaifuListType.java @@ -0,0 +1,25 @@ +package me.goudham.util; + +import me.goudham.domain.user.User; +import me.goudham.domain.waifu.Waifu; + +/** + * Specifies the different actions that the {@link User} can + * perform on a {@link Waifu} + * + */ +public enum WaifuListType { + CREATED("created"), + LIKED("like"), + TRASHED("trash"); + + private final String listType; + + WaifuListType(String listType) { + this.listType = listType; + } + + public String getListType() { + return listType; + } +}