2022-04-21 16:25:03 +02:00
|
|
|
package org.gcube.social_networking.socialnetworking.model.beans;
|
|
|
|
|
2022-05-02 17:30:20 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
|
|
|
2022-04-21 16:25:03 +02:00
|
|
|
public class WorkspaceNotificationMessage {
|
|
|
|
|
|
|
|
private WorkspaceNotificationType type;
|
2022-04-27 18:29:47 +02:00
|
|
|
|
2022-05-02 17:30:20 +02:00
|
|
|
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
|
2022-05-02 17:54:29 +02:00
|
|
|
private WorkspaceNotification bean;
|
2022-04-29 14:52:03 +02:00
|
|
|
|
|
|
|
public WorkspaceNotificationMessage() {
|
|
|
|
super();
|
|
|
|
}
|
2022-04-27 18:29:47 +02:00
|
|
|
|
2022-05-02 17:54:29 +02:00
|
|
|
public WorkspaceNotificationMessage(WorkspaceNotificationType type, WorkspaceNotification bean) {
|
2022-04-21 16:25:03 +02:00
|
|
|
super();
|
|
|
|
this.type = type;
|
|
|
|
this.bean = bean;
|
|
|
|
}
|
|
|
|
|
|
|
|
public WorkspaceNotificationType getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2022-05-02 17:54:29 +02:00
|
|
|
public WorkspaceNotification getBean() {
|
2022-04-21 16:25:03 +02:00
|
|
|
return bean;
|
|
|
|
}
|
2022-04-27 18:29:47 +02:00
|
|
|
|
2022-04-29 14:52:03 +02:00
|
|
|
public void setType(WorkspaceNotificationType type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
2022-04-27 18:29:47 +02:00
|
|
|
|
2022-05-02 17:54:29 +02:00
|
|
|
public void setBean(WorkspaceNotification bean) {
|
2022-04-29 14:52:03 +02:00
|
|
|
this.bean = bean;
|
|
|
|
}
|
2022-04-21 16:25:03 +02:00
|
|
|
}
|