| 123456789101112131415161718192021222324252627282930313233343536373839 |
- 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;
- }
- }
|