package net.ontopia.presto.jaxb;

import javax.xml.bind.annotation.XmlRootElement;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

@XmlRootElement
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class TopicMessage {

    private String type;
    private String title;
    private String message;

    public TopicMessage() {
    }

    public TopicMessage(String type, String title, String message) {
        this.type = type;
        this.title = title;
        this.message = message;
    }
    
    public String getType() {
        return type;
    }
    
    public String getFormat() {
        return "message";
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}

@@ -27,16 +27,39 @@
 .jaxb;%0A%0A
+import java.util.Map;%0A%0A
 import j
@@ -449,16 +449,56 @@
 message;
+%0A    private Map%3CString, Object%3E params;
 %0A%0A    pu
@@ -1175,10 +1175,178 @@
 %0A    %7D%0A%0A
+    public Map%3CString, Object%3E getParams() %7B%0A        return params;%0A    %7D%0A%0A    public void setParams(Map%3CString, Object%3E params) %7B%0A        this.params = params;%0A    %7D%0A%0A
 %7D%0A

Add params to topic message