com.dingtalk.baymax.framework.sdk.mercury.domain.BaseMessage Maven / Gradle / Ivy
package com.dingtalk.baymax.framework.sdk.mercury.domain;
import java.io.Serializable;
import java.util.Map;
/**
* 消息基类
*
* @author xiaoxuan.lp
*/
public abstract class BaseMessage implements Serializable {
private String content;
private Map additionalKwargs;
/**
* 消息的类型,用于序列化
*
* @return
*/
public abstract String getType();
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Map getAdditionalKwargs() {
return additionalKwargs;
}
public void setAdditionalKwargs(Map additionalKwargs) {
this.additionalKwargs = additionalKwargs;
}
}