package fr.jaquin.bdlg.planner.websockets; public class NotificationMessage { private String text; private MessageType type; public enum MessageType { info, success, warning, error, } public NotificationMessage(String text) { this.text = text; this.type = MessageType.info; } public NotificationMessage(String text, MessageType type) { this.text = text; this.type = type; } public String getText() { return this.text; } public void setText(String text) { this.text = text; } public MessageType getType() { return type; } public void setType(MessageType type) { this.type = type; } }