Add Enum for User Actions on Waifus

Reduces the chance of user error to near 0% as they are forced to use
this enum
pull/10/head
Hammy 4 years ago
parent 2580c0756a
commit 0f891e466d

@ -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;
}
}
Loading…
Cancel
Save