package org.gcube.social_networking.socialnetworking.model.beans; import com.fasterxml.jackson.annotation.JsonTypeInfo; public class WorkspaceNotificationMessage { private WorkspaceNotificationType type; @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS) private WorkspaceNotification bean; public WorkspaceNotificationMessage() { super(); } public WorkspaceNotificationMessage(WorkspaceNotificationType type, WorkspaceNotification bean) { super(); this.type = type; this.bean = bean; } public WorkspaceNotificationType getType() { return type; } public WorkspaceNotification getBean() { return bean; } public void setType(WorkspaceNotificationType type) { this.type = type; } public void setBean(WorkspaceNotification bean) { this.bean = bean; } }