social-service-model/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/WorkspaceNotificationMessag...

38 lines
783 B
Java
Raw Normal View History

package org.gcube.social_networking.socialnetworking.model.beans;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
public class WorkspaceNotificationMessage {
private WorkspaceNotificationType type;
2022-04-27 18:29:47 +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) {
super();
this.type = type;
this.bean = bean;
}
public WorkspaceNotificationType getType() {
return type;
}
2022-05-02 17:54:29 +02:00
public WorkspaceNotification getBean() {
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;
}
}